id int64 0 1.29M | original_id stringlengths 32 32 | swhid stringlengths 100 170 | sha1 stringlengths 40 40 | repo_name stringlengths 2 45 | repo_group stringclasses 12
values | filepath stringlengths 5 153 | name stringlengths 1 14.9k | type stringclasses 3
values | code stringlengths 7 2.12M |
|---|---|---|---|---|---|---|---|---|---|
18,400 | a442d554f18744c0a792bc4e6e10c15c | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=4977-5091/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | computeHermiteSmoothedData | function | ///////
// computeHermiteSmoothedData
// A hermite spline smoothing of the plot data.
// This implementation is derived from the one posted
// by krypin on the jqplot-users mailing list:
//
// http://groups.google.com/group/jqplot-users/browse_thread/thread/748be6a445723cea?pli=1
//
// w... |
18,401 | b004e05390c0cf5bda2e71352ea3dcbb | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=6728-6777/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | bestInterval | function | // This will return an interval of form 2 * 10^n, 5 * 10^n or 10 * 10^n
// it is based soley on the range and number of ticks. So if user specifies
// number of ticks, use this.
function bestInterval(range, numberTicks) {
numberTicks = numberTicks || 7;
var minimum = range / (numberTicks - ... |
18,402 | 532181d6f633175ca0088dbd35c5e2b9 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=10359-10363/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | pad | function | function pad(str, len, chr, leftJustify) {
var padding = (str.length >= len) ? '' : Array(1 + len - str.length >>> 0).join(chr);
return leftJustify ? str + padding : padding + str;
} |
18,403 | da087aeef090160204e006d3b628c4f8 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=10365-10371/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | thousand_separate | function | function thousand_separate(value) {
var value_str = new String(value);
for (var i=10; i>0; i--) {
if (value_str == (value_str = value_str.replace(/^(\d+)(\d{3})/, "$1"+$.jqplot.sprintf.thousandsSeparator+"$2"))) break;
}
return value_str;
} |
18,404 | 0aa32fdd8df5e9ce10d860624b85061c | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=10373-10385/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | justify | function | function justify(value, prefix, leftJustify, minWidth, zeroPad, htmlSpace) {
var diff = minWidth - value.length;
if (diff > 0) {
var spchar = ' ';
if (htmlSpace) { spchar = ' '; }
if (leftJustify || !zeroPad) {
value = pad(... |
18,405 | 76c238931bd65a66508e026ba75e060e | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=10395-10400/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | formatString | function | function formatString(value, leftJustify, minWidth, precision, zeroPad, htmlSpace) {
if (precision != null) {
value = value.slice(0, precision);
}
return justify(value, '', leftJustify, minWidth, zeroPad, htmlSpace);
} |
18,406 | 1c1488290e928f8984e4e8381c17e760 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=10754-10770/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | standardSpeed | function | function standardSpeed( speed ) {
// valid standard speeds
if ( !speed || typeof speed === "number" || $.fx.speeds[ speed ] ) {
return true;
}
// invalid strings - treat as "normal" speed
if ( typeof speed === "string" && !$.jqplot.effects.effect[ speed ] ) {
... |
18,407 | 4522f787626e70b03983c2f244be02e2 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=10800-10807/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | run::done | function | function done() {
if ( $.isFunction( complete ) ) {
complete.call( elem[0] );
}
if ( $.isFunction( next ) ) {
next();
}
} |
18,408 | ac9786fc6a7641c76eab78f4a488d39f | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=4901-4908/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | computeConstrainedSmoothedData::dxx | function | function dxx(x1, x0) {
if (x1 - x0 == 0) {
return Math.pow(10,10);
}
else {
return x1 - x0;
}
} |
18,409 | 98f5fd384650ca35c324239d82e80eac | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=4851-4854/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | computeSteps | function | function computeSteps (d1, d2) {
var s = Math.sqrt(Math.pow((d2[0]- d1[0]), 2) + Math.pow ((d2[1] - d1[1]), 2));
return 5.7648 * Math.log(s) + 7.4456;
} |
18,410 | 282d2afd01f8f234e6e182271dccb608 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=5519-5530/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | postInit | function | // called with scope of plot.
// make sure to not leave anything highlighted.
function postInit(target, data, options) {
for (var i=0; i<this.series.length; i++) {
if (this.series[i].renderer.constructor == $.jqplot.LineRenderer) {
// don't allow mouseover and mousedown at sa... |
18,411 | d0403e9156dea413ebdec66185b23ac9 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=5597-5611/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | handleMouseDown | function | function handleMouseDown(ev, gridpos, datapos, neighbor, plot) {
if (neighbor) {
var ins = [neighbor.seriesIndex, neighbor.pointIndex, neighbor.data];
if (plot.series[ins[0]].highlightMouseDown && !(ins[0] == plot.plugins.lineRenderer.highlightedSeriesIndex)) {
var evt = ... |
18,412 | 17637d18f252d6d9268c42c69ed9565c | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=5630-5642/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | handleRightClick | function | function handleRightClick(ev, gridpos, datapos, neighbor, plot) {
if (neighbor) {
var ins = [neighbor.seriesIndex, neighbor.pointIndex, neighbor.data];
var idx = plot.plugins.lineRenderer.highlightedSeriesIndex;
if (idx != null && plot.series[idx].highlightMouseDown) {
... |
18,413 | be3596ff96f583fe09700b7c792a098d | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=6816-6857/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | bestLinearComponents | function | function bestLinearComponents(range, scalefact) {
var expv = Math.floor(Math.log(range)/Math.LN10);
var magnitude = Math.pow(10, expv);
// 0 < f < 10
var f = range / magnitude;
var interval;
var fact;
// for large plots, scalefact will decrease f and increase numb... |
18,414 | 911025f60e18b9cd76a567482e1b13b7 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=8247-8261/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | clone | function | // function clone(obj) {
// return eval(obj.toSource());
// }
function clone(obj){
if(obj == null || typeof(obj) != 'object'){
return obj;
}
var temp = new obj.constructor();
for(var key in obj){
temp[key] = clone(obj[key]);
}
... |
18,415 | e461a0a9418a8c60b1827f2ef3e0066c | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=8265-8283/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | merge | function | function merge(obj1, obj2) {
if (obj2 == null || typeof(obj2) != 'object') {
return;
}
for (var key in obj2) {
if (key == 'highlightColors') {
obj1[key] = clone(obj2[key]);
}
if (obj2[key] != null && typeof(obj2[key]) == 'object') ... |
18,416 | cbf1740aa958d94959eac33ecf65db0a | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=8662-8712/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | writeWrappedText | function | function writeWrappedText (el, context, text, left, top, canvasWidth) {
var lineheight = getLineheight(el);
var tagwidth = $(el).innerWidth();
var tagheight = $(el).innerHeight();
var words = text.split(/\s+/);
var wl = words.length;
var w = '';
... |
18,417 | 08cde7df78fe8d928ec172e08d82adb9 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=10093-10117/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | h1 | function | function h1(parsable, match) {
var m1 = parseFloat(match[1]);
var m2 = parseFloat(match[2]);
var m3 = parseFloat(match[3]);
var cent = jsDate.config.defaultCentury;
var ny, nd, nm, str;
if (m1 > 31) { // first number is a year
... |
18,418 | ee670035ebad90e8a75e6d7fea71afc8 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=10795-10816/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | run | function | function run( next ) {
var elem = $( this ),
complete = args.complete,
mode = args.mode;
function done() {
if ( $.isFunction( complete ) ) {
complete.call( elem[0] );
}
... |
18,419 | e0109f7e4536bb908eaa128a38e4f813 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=4861-4975/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | computeConstrainedSmoothedData | function | //////////
// computeConstrainedSmoothedData
// An implementation of the constrained cubic spline interpolation
// method as presented in:
//
// Kruger, CJC, Constrained Cubic Spine Interpolation for Chemical Engineering Applications
// http://www.korf.co.uk/spline.pdf
//
// The implemen... |
18,420 | 57e708686dc2e75406af35d3a7c71ea4 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=10387-10393/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | formatBaseX | function | function formatBaseX(value, base, prefix, leftJustify, minWidth, precision, zeroPad, htmlSpace) {
// Note: casts negative numbers to positive ones
var number = value >>> 0;
prefix = prefix && number && {'2': '0b', '8': '0', '16': '0x'}[base] || '';
value = prefix + pad(nu... |
18,421 | 2a52d91a5bfa5b2677e88a9e2f9e8771 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=785-883/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | Legend | function | /**
* Class: Legend
* Legend object. Cannot be instantiated directly, but created
* by the Plot oject. Legend properties can be set or overriden by the
* options passed in from the user.
*/
function Legend(options) {
$.jqplot.ElemContainer.call(this);
// Group: Properties... |
18,422 | 95b11f85e293d276855fb2fa56918422 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=1632-3376/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | jqPlot | function | /**
* Class: jqPlot
* Plot object returned by call to $.jqplot. Handles parsing user options,
* creating sub objects (Axes, legend, title, series) and rendering the plot.
*/
function jqPlot() {
// Group: Properties
// These properties are specified at the top of the options obje... |
18,423 | d3656d0a757cbb23579891b88f45b244 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=2845-3132/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | jqPlot::checkIntersection | function | // function to check if event location is over a area area
function checkIntersection(gridpos, plot) {
var series = plot.series;
var i, j, k, s, r, x, y, theta, sm, sa, minang, maxang;
var d0, d, p, pp, points, bw;
var threshold, t;
for (k=plot.seriesS... |
18,424 | 835180f1575f3a3efdef5e1c1fc2e60c | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=2988-2996/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | jqPlot::checkIntersection::findedge | function | // equations of right and left sides, returns x, y values given height of section (y value and 2 points)
function findedge (l, p1 , p2) {
var m = (p1[1] - p2[1])/(p1[0] - p2[0]);
var b = p1[1] - m*p1[0];
var... |
18,425 | 58baafe81552f0c479670004178341b8 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=5532-5548/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | postPlotDraw | function | // called within context of plot
// create a canvas which we can draw on.
// insert it before the eventCanvas, so eventCanvas will still capture events.
function postPlotDraw() {
// Memory Leaks patch
if (this.plugins.lineRenderer && this.plugins.lineRenderer.highlightCanvas) {
... |
18,426 | 462dc7acbfb0e1b0adbec54d46254d83 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=5550-5563/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | highlight | function | function highlight (plot, sidx, pidx, points) {
var s = plot.series[sidx];
var canvas = plot.plugins.lineRenderer.highlightCanvas;
canvas._ctx.clearRect(0,0,canvas._ctx.canvas.width, canvas._ctx.canvas.height);
s._highlightedPoint = pidx;
plot.plugins.lineRenderer.highlightedSeri... |
18,427 | 335a4e4779f888b5e46932da99793032 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=5577-5595/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | handleMove | function | function handleMove(ev, gridpos, datapos, neighbor, plot) {
if (neighbor) {
var ins = [neighbor.seriesIndex, neighbor.pointIndex, neighbor.data];
var evt1 = jQuery.Event('jqplotDataMouseOver');
evt1.pageX = ev.pageX;
evt1.pageY = ev.pageY;
plot.target.... |
18,428 | 3246106034ec565213d9740061946f31 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=5613-5618/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | handleMouseUp | function | function handleMouseUp(ev, gridpos, datapos, neighbor, plot) {
var idx = plot.plugins.lineRenderer.highlightedSeriesIndex;
if (idx != null && plot.series[idx].highlightMouseDown) {
unhighlight(plot);
}
} |
18,429 | 3c905cabcd59752f4a5bbd1f5ac106bd | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=6609-6653/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | bestFormatString | function | /**
* The following code was generaously given to me a while back by Scott Prahl.
* He did a good job at computing axes min, max and number of ticks for the
* case where the user has not set any scale related parameters (tickInterval,
* numberTicks, min or max). I had ignored this use case for a long ... |
18,430 | ec45f6e887c9a7a75c3e6c9a6a6aa3b1 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=6677-6726/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | bestConstrainedInterval | function | // Given a fixed minimum and maximum and a target number ot ticks
// figure out the best interval and
// return min, max, number ticks, format string and tick interval
function bestConstrainedInterval(min, max, nttarget) {
// run through possible number to ticks and see which interval is best
... |
18,431 | 72ccb95aca1f8ef2f2af67d541a798e3 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=8714-8785/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | _jqpToImage | function | function _jqpToImage(el, x_offset, y_offset) {
var tagname = el.tagName.toLowerCase();
var p = $(el).position();
var css = window.getComputedStyle ? window.getComputedStyle(el) : el.currentStyle; // for IE < 9
var left = x_offset + p.left + parseInt(css.marginLeft, 10) +... |
18,432 | 4b2a9d24d56eac4a507bf9784e056fba | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=10285-10291/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | get_type | function | //
// Thanks to Kangax, Christian Sciberras and Stack Overflow for this method.
//
function get_type(thing){
if(thing===null) return "[object Null]"; // special case
return Object.prototype.toString.call(thing);
} |
18,433 | cfb398385d826fca8dee5ad7fc07ab91 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=1012-1054/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | Title | function | /**
* Class: Title
* Plot Title object. Cannot be instantiated directly, but created
* by the Plot oject. Title properties can be set or overriden by the
* options passed in from the user.
*
* Parameters:
* text - text of the title.
*/
function Title(text) {
$.jqp... |
18,434 | 4f9ed400a8267407dc80bbc24053a621 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=1438-1509/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | Grid | function | /**
* Class: Grid
*
* Object representing the grid on which the plot is drawn. The grid in this
* context is the area bounded by the axes, the area which will contain the series.
* Note, the series are drawn on their own canvas.
* The Grid object cannot be instantiated directly, but is c... |
18,435 | 64ddf6687bd13c7aa87bec4207db6614 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=2826-2842/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | jqPlot::getEventPosition | function | function getEventPosition(ev) {
var plot = ev.data.plot;
var go = plot.eventCanvas._elem.offset();
var gridPos = {x:ev.pageX - go.left, y:ev.pageY - go.top};
var dataPos = {xaxis:null, yaxis:null, x2axis:null, y2axis:null, y3axis:null, y4axis:null, y5axis:null, y6axis:nul... |
18,436 | f87e7de9b1591b4eeddd7acdc31b0bc7 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=4220-4231/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | drawLine | function | function drawLine(bx, by, ex, ey, opts) {
ctx.save();
opts = opts || {};
if (opts.lineWidth == null || opts.lineWidth != 0){
$.extend(true, ctx, opts);
ctx.beginPath();
ctx.moveTo(bx, by);
ctx.lineTo(ex, ey);
... |
18,437 | 3d52be2bec5116470206acdac6e19d2f | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=4856-4859/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | tanh | function | function tanh (x) {
var a = (Math.exp(2*x) - 1) / (Math.exp(2*x) + 1);
return a;
} |
18,438 | a1c8016cea7af3327b6c0f475dbd6e1f | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=5565-5574/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | unhighlight | function | function unhighlight (plot) {
var canvas = plot.plugins.lineRenderer.highlightCanvas;
canvas._ctx.clearRect(0,0, canvas._ctx.canvas.width, canvas._ctx.canvas.height);
for (var i=0; i<plot.series.length; i++) {
plot.series[i]._highlightedPoint = null;
}
plot.plugins.li... |
18,439 | 0fb2009d5737a13037ed3f17e697db7a | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=5620-5628/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | handleClick | function | function handleClick(ev, gridpos, datapos, neighbor, plot) {
if (neighbor) {
var ins = [neighbor.seriesIndex, neighbor.pointIndex, neighbor.data];
var evt = jQuery.Event('jqplotDataClick');
evt.pageX = ev.pageX;
evt.pageY = ev.pageY;
plot.target.trigge... |
18,440 | c6c1c13a4796f2315d68da7c17ad1bf9 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=6779-6814/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | bestLinearInterval | function | // This will return an interval of form 2 * 10^n, 5 * 10^n or 10 * 10^n
// it is based soley on the range of data, number of ticks must be computed later.
function bestLinearInterval(range, scalefact) {
scalefact = scalefact || 1;
var expv = Math.floor(Math.log(range)/Math.LN10);
var mag... |
18,441 | 82499b1bf1119f9216d020441ce0ee2a | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=7983-7983/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | numericalOrder | function | function numericalOrder(a,b) { return a-b; } |
18,442 | c88db0ef530f5df70a2ed8b3de8f59ed | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=8653-8660/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | getLineheight | function | function getLineheight(el) {
var lineheight = parseInt($(el).css('line-height'), 10);
if (isNaN(lineheight)) {
lineheight = parseInt($(el).css('font-size'), 10) * 1.2;
}
return lineheight;
} |
18,443 | 4d305a818257ba65a64200902c2f35e5 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=10704-10752/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | _normalizeArguments | function | // return an effect options object for the given parameters:
function _normalizeArguments( effect, options, speed, callback ) {
// short path for passing an effect options object:
if ( $.isPlainObject( effect ) ) {
return effect;
}
// convert to an object
effect... |
18,444 | eca41e21d4b69204154dd2860faff1e7 | swh:1:cnt:3c620f2e3ed9c9e9f01023d528a8bff7a56e9850;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=10268-10283/ | 9824752dd31094001e58d66b25bea141ca8f635a | pageview-api | analytics | web/static/jqplot/jquery.jqplot.js | inArray | function | //
// I think John Reisig published this method on his blog, ejohn.
//
function inArray( elem, array ) {
if ( array.indexOf ) {
return array.indexOf( elem );
}
for ( var i = 0, length = array.length; i < length; i++ ) {
if ( array[ i ] === elem ) {
... |
18,445 | f52e4f2ad54f55dca3792207e7c058a6 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | u | function | function u(ab){H.jqplot.ElemContainer.call(this);this.text=ab;this.show=true;this.fontFamily;this.fontSize;this.textAlign;this.textColor;this.renderer=H.jqplot.DivTitleRenderer;this.rendererOptions={};this.escapeHtml=false} |
18,446 | 05f5af9369088eb5fa381fbc49c7c405 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | N::ab | function | function ab(aj){var an,ao,ap,af,am;for(var ak=0;ak<aj.length;ak++){var ag;var al=[aj[ak].data,aj[ak]._stackData,aj[ak]._plotData,aj[ak]._prevPlotData];for(var ah=0;ah<4;ah++){ag=true;an=al[ah];if(aj[ak]._stackAxis=="x"){for(var ai=0;ai<an.length;ai++){if(typeof(an[ai][1])!="number"){ag=false;break}}if(ag){an.sort(funct... |
18,447 | fc3862fb7792a67d8d4bca3c6da17d84 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | ai | function | function ai(aB,aA,ay,ax,az){am.save();az=az||{};if(az.lineWidth==null||az.lineWidth!=0){H.extend(true,am,az);am.beginPath();am.moveTo(aB,aA);am.lineTo(ay,ax);am.stroke();am.restore()}} |
18,448 | a1ff970b87d147bdc2a7f7f6a993acdd | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | G | function | function G(ac,ab){return(3.4182054+ab)*Math.pow(ac,-0.3534992)} |
18,449 | a068c2bac654db8e5cdf0ab7a1d9ad0b | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | w | function | function w(ab){var ac=(Math.exp(2*ab)-1)/(Math.exp(2*ab)+1);return ac} |
18,450 | ad1c394cfb2d5fa96537195ae1672a1f | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | X | function | function X(ah,ag,ae,ad){var ac=ah.series[ag];var ab=ah.plugins.lineRenderer.highlightCanvas;ab._ctx.clearRect(0,0,ab._ctx.canvas.width,ab._ctx.canvas.height);ac._highlightedPoint=ae;ah.plugins.lineRenderer.highlightedSeriesIndex=ag;var af={fillStyle:ac.highlightColor};if(ac.type==="line"&&ac.renderer.bands.show){af.fil... |
18,451 | 229ada14dbf25fc1a0e4dc7718ee07b0 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | c | function | function c(af,an,am){var ak=Math.floor(am/2);var ac=Math.ceil(am*1.5);var ae=Number.MAX_VALUE;var ab=(an-af);var aq;var aj;var al;var ap;var ah;var ar=H.jqplot.getSignificantFigures;var ai;var ao;for(var ag=0,ad=ac-ak+1;ag<ad;ag++){ai=ak+ag;aq=ab/(ai-1);aj=ar(aq);aq=Math.abs(am-ai)+aj.digitsRight;if(aq<ae){ae=aq;al=ai;... |
18,452 | 7ee42c0aee7a0151021c0aa55d395746 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | M | function | function M(ac,ab){ab=ab||1;var ae=Math.floor(Math.log(ac)/Math.LN10);var ag=Math.pow(10,ae);var af=ac/ag;var ad;af=af/ab;if(af<=0.38){ad=0.1}else{if(af<=1.6){ad=0.2}else{if(af<=4){ad=0.5}else{if(af<=8){ad=1}else{if(af<=16){ad=2}else{ad=5}}}}}return ad*ag} |
18,453 | 29434b8d2bd467ad4430b8270588f24d | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | x | function | function x(ad){if(ad==null||typeof(ad)!="object"){return ad}var ab=new ad.constructor();for(var ac in ad){ab[ac]=x(ad[ac])}return ab} |
18,454 | 7bf4867cd9c5d1fafc0cbdc06c034fd8 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | ax | function | function ax(az,ay,aM,aA,aI,aB){var aK=aw(az);var aE=H(az).innerWidth();var aF=H(az).innerHeight();var aH=aM.split(/\s+/);var aL=aH.length;var aJ="";var aG=[];var aO=aI;var aN=aA;for(var aD=0;aD<aL;aD++){aJ+=aH[aD];if(ay.measureText(aJ).width>aE){aG.push(aD);aJ=""}}if(aG.length===0){if(H(az).css("textAlign")==="center")... |
18,455 | 42e4098f30c52ceedf6352820b5fd3f5 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | standardSpeed | function | function standardSpeed(a){if(!a||typeof a==="number"||$.fx.speeds[a]){return true}if(typeof a==="string"&&!$.jqplot.effects.effect[a]){if(backCompat&&$.jqplot.effects[a]){return false}return true}return false} |
18,456 | bd039ef0790464115b36a05764bd06b2 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | O | function | function O(){H.jqplot.ElemContainer.call(this);this.show=true;this.xaxis="xaxis";this._xaxis;this.yaxis="yaxis";this._yaxis;this.gridBorderWidth=2;this.renderer=H.jqplot.LineRenderer;this.rendererOptions={};this.data=[];this.gridData=[];this.label="";this.showLabel=true;this.color;this.negativeColor;this.lineWidth=2.5;... |
18,457 | a979b8dfd3963b8fdfc836febe65f232 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | N | function | function N(){this.animate=false;this.animateReplot=false;this.axes={xaxis:new s("xaxis"),yaxis:new s("yaxis"),x2axis:new s("x2axis"),y2axis:new s("y2axis"),y3axis:new s("y3axis"),y4axis:new s("y4axis"),y5axis:new s("y5axis"),y6axis:new s("y6axis"),y7axis:new s("y7axis"),y8axis:new s("y8axis"),y9axis:new s("y9axis"),yMi... |
18,458 | 54f7aff80566f6d661840bdac5d6096d | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | N::ae::aL | function | function aL(aT,aV,aU){var aS=(aV[1]-aU[1])/(aV[0]-aU[0]);var aR=aV[1]-aS*aV[0];var aW=aT+aV[1];return[(aW-aR)/aS,aW]} |
18,459 | d6c70b29e3d54106655dbeb2da1d9190 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | k | function | function k(ad,ac){var ab=Math.sqrt(Math.pow((ac[0]-ad[0]),2)+Math.pow((ac[1]-ad[1]),2));return 5.7648*Math.log(ab)+7.4456} |
18,460 | a839a03e046b9b5cc84299de5b4ca3ca | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | d | function | function d(ae,ad,ah,ag,af){if(ag){var ac=[ag.seriesIndex,ag.pointIndex,ag.data];if(af.series[ac[0]].highlightMouseDown&&!(ac[0]==af.plugins.lineRenderer.highlightedSeriesIndex)){var ab=jQuery.Event("jqplotDataHighlight");ab.pageX=ae.pageX;ab.pageY=ae.pageY;af.target.trigger(ab,ac);X(af,ag.seriesIndex,ag.pointIndex,ag.p... |
18,461 | a9d4875075ccc9e9910d312e444257b4 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | Y | function | function Y(ad,ac,ag,af,ae){var ab=ae.plugins.lineRenderer.highlightedSeriesIndex;if(ab!=null&&ae.series[ab].highlightMouseDown){V(ae)}} |
18,462 | 993f931f4c3f139d914086098a4c8317 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | p | function | function p(af,ae,ai,ah,ag){if(ah){var ad=[ah.seriesIndex,ah.pointIndex,ah.data];var ab=ag.plugins.lineRenderer.highlightedSeriesIndex;if(ab!=null&&ag.series[ab].highlightMouseDown){V(ag)}var ac=jQuery.Event("jqplotDataRightClick");ac.pageX=af.pageX;ac.pageY=af.pageY;ag.target.trigger(ac,ad)}} |
18,463 | 16be79f43ea698b1a31834f4e33ac247 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | S | function | function S(ac,af){af=af||7;var ae=ac/(af-1);var ad=Math.pow(10,Math.floor(Math.log(ae)/Math.LN10));var ag=ae/ad;var ab;if(ad<1){if(ag>5){ab=10*ad}else{if(ag>2){ab=5*ad}else{if(ag>1){ab=2*ad}else{ab=ad}}}}else{if(ag>5){ab=10*ad}else{if(ag>4){ab=5*ad}else{if(ag>3){ab=4*ad}else{if(ag>2){ab=3*ad}else{if(ag>1){ab=2*ad}else{... |
18,464 | 3e7efe42171b09a0594175aa8b738c7b | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | t | function | function t(ad,ac){var af=Math.floor(Math.log(ad)/Math.LN10);var ah=Math.pow(10,af);var ag=ad/ah;var ab;var ae;ag=ag/ac;if(ag<=0.38){ae=0.1}else{if(ag<=1.6){ae=0.2}else{if(ag<=4){ae=0.5}else{if(ag<=8){ae=1}else{if(ag<=16){ae=2}else{ae=5}}}}}ab=ae*ah;return[ab,ae,ah]} |
18,465 | 6b7aaef3fefadefbf7c6299d297136e3 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | R | function | function R(ad,ac){if(ac==null||typeof(ac)!="object"){return}for(var ab in ac){if(ab=="highlightColors"){ad[ab]=x(ac[ab])}if(ac[ab]!=null&&typeof(ac[ab])=="object"){if(!ad.hasOwnProperty(ab)){ad[ab]={}}R(ad[ab],ac[ab])}else{ad[ab]=ac[ab]}}} |
18,466 | c3998d7b9b4b69881fe04cb1ff896ae3 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | ap | function | function ap(aA,aD,ay){var aH=aA.tagName.toLowerCase();var az=H(aA).position();var aE=window.getComputedStyle?window.getComputedStyle(aA):aA.currentStyle;var aC=aD+az.left+parseInt(aE.marginLeft,10)+parseInt(aE.borderLeftWidth,10)+parseInt(aE.paddingLeft,10);var aF=ay+az.top+parseInt(aE.marginTop,10)+parseInt(aE.borderT... |
18,467 | 2c054cbd7169ecebf74e6dcb7a83aa7b | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | c::k | function | function k(){if($.isFunction(l)){l.call(n[0])}if($.isFunction(m)){m()}} |
18,468 | 5287cf6a7f8a1774e2f743be97351330 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | ae | function | function ae(al){var ak=new String(al);for(var aj=10;aj>0;aj--){if(ak==(ak=ak.replace(/^(\d+)(\d{3})/,"$1"+H.jqplot.sprintf.thousandsSeparator+"$2"))){break}}return ak} |
18,469 | 3dbb62ed97c7d2d2755611fec3180274 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | s | function | function s(ab){H.jqplot.ElemContainer.call(this);this.name=ab;this._series=[];this.show=false;this.tickRenderer=H.jqplot.AxisTickRenderer;this.tickOptions={};this.labelRenderer=H.jqplot.AxisLabelRenderer;this.labelOptions={};this.label=null;this.showLabel=true;this.min=null;this.max=null;this.autoscale=false;this.pad=1... |
18,470 | 39f92a9cfd43c46709ff5aa8abf232d3 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | n | function | function n(ab){H.jqplot.ElemContainer.call(this);this.show=false;this.location="ne";this.labels=[];this.showLabels=true;this.showSwatches=true;this.placement="insideGrid";this.xoffset=0;this.yoffset=0;this.border;this.background;this.textColor;this.fontFamily;this.fontSize;this.rowSpacing="0.5em";this.renderer=H.jqplot... |
18,471 | 0c89c51015fae7dd6c35f0afc7f603b2 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | N::ae | function | function ae(af,ag){var ak=ag.series;var aP,aO,aN,aI,aJ,aD,aC,ap,an,at,au,aE;var aM,aQ,aK,al,aB,aG;var ah,aH;for(aN=ag.seriesStack.length-1;aN>=0;aN--){aP=ag.seriesStack[aN];aI=ak[aP];switch(aI.renderer.constructor){case H.jqplot.BarRenderer:case H.jqplot.PyramidRenderer:aD=af.x;aC=af.y;for(aO=0;aO<aI._barPoints.length;... |
18,472 | 464c58ad9662b7f6ddc9224853d036ad | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | B | function | function B(aj){var ai=this.renderer.smooth;var aO=this.renderer.tension;var ab=this.canvas.getWidth();var aB=this._xaxis.series_p2u;var ak=this._yaxis.series_p2u;var aC=null;var aD=null;var aN=null;var aI=null;var aG=null;var am=null;var aL=null;var ag=null;var aE,aF,ax,aw,au,ar;var ae,ac,ao,an;var av,at,aH;var ap=[];v... |
18,473 | 1e3f76a4016444fb9494912d15f718c9 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | Z | function | function Z(){if(this.plugins.lineRenderer&&this.plugins.lineRenderer.highlightCanvas){this.plugins.lineRenderer.highlightCanvas.resetCanvas();this.plugins.lineRenderer.highlightCanvas=null}this.plugins.lineRenderer.highlightedSeriesIndex=null;this.plugins.lineRenderer.highlightCanvas=new H.jqplot.GenericCanvas();this.e... |
18,474 | a272ae83d89d086aea35df083a801e97 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | v | function | function v(ae,ad,ab){for(var ac=0;ac<this.series.length;ac++){if(this.series[ac].renderer.constructor==H.jqplot.LineRenderer){if(this.series[ac].highlightMouseOver){this.series[ac].highlightMouseDown=false}}}} |
18,475 | 7dc158b100e85d5d216f43fb666a0e79 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | V | function | function V(ad){var ab=ad.plugins.lineRenderer.highlightCanvas;ab._ctx.clearRect(0,0,ab._ctx.canvas.width,ab._ctx.canvas.height);for(var ac=0;ac<ad.series.length;ac++){ad.series[ac]._highlightedPoint=null}ad.plugins.lineRenderer.highlightedSeriesIndex=null;ad.target.trigger("jqplotDataUnhighlight");ab=null} |
18,476 | 54f81fe1619c9eb833d410e9b3d7e558 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | g | function | function g(af,ae,ai,ah,ag){if(ah){var ad=[ah.seriesIndex,ah.pointIndex,ah.data];var ac=jQuery.Event("jqplotDataMouseOver");ac.pageX=af.pageX;ac.pageY=af.pageY;ag.target.trigger(ac,ad);if(ag.series[ad[0]].highlightMouseOver&&!(ad[0]==ag.plugins.lineRenderer.highlightedSeriesIndex)){var ab=jQuery.Event("jqplotDataHighlig... |
18,477 | ea0e9bac6796154bd5da0c7713e2aad3 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | f | function | function f(ae,ad,ah,ag,af){if(ag){var ac=[ag.seriesIndex,ag.pointIndex,ag.data];var ab=jQuery.Event("jqplotDataClick");ab.pageX=ae.pageX;ab.pageY=ae.pageY;af.target.trigger(ab,ac)}} |
18,478 | f25f1afb003a5faebbbd71c187da3b0c | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | K | function | function K(ac,ab){return ac-ab} |
18,479 | a235a835a49b4670c265096a3626e676 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | ad | function | function ad(ao,an,aq,al,am,ak){var ap=al-ao.length;if(ap>0){var aj=" ";if(ak){aj=" "}if(aq||!am){ao=ah(ao,al,aj,aq)}else{ao=ao.slice(0,an.length)+ah("",ap,"0",true)+ao.slice(an.length)}}return ao} |
18,480 | b0af3cbc62bef87f4d908f4db553916c | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | I | function | function I(){H.jqplot.ElemContainer.call(this);this.drawGridlines=true;this.gridLineColor="#cccccc";this.gridLineWidth=1;this.background="#fffdf6";this.borderColor="#999999";this.borderWidth=2;this.drawBorder=true;this.shadow=true;this.shadowAngle=45;this.shadowOffset=1.5;this.shadowWidth=3;this.shadowDepth=3;this.shad... |
18,481 | 1bd9e0fcae5cbdff53d2d9d02e8b0155 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | N::ac | function | function ac(ao){var am=ao.data.plot;var ai=am.eventCanvas._elem.offset();var al={x:ao.pageX-ai.left,y:ao.pageY-ai.top};var aj={xaxis:null,yaxis:null,x2axis:null,y2axis:null,y3axis:null,y4axis:null,y5axis:null,y6axis:null,y7axis:null,y8axis:null,y9axis:null,yMidAxis:null};var ak=["xaxis","yaxis","x2axis","y2axis","y3axi... |
18,482 | 5732b7892bc4a5a908a8e000d0df09f2 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | F | function | function F(aD){var am=this.renderer.smooth;var ax=this.canvas.getWidth();var ah=this._xaxis.series_p2u;var aA=this._yaxis.series_p2u;var az=null;var ag=null;var at=aD.length/ax;var ad=[];var ar=[];if(!isNaN(parseFloat(am))){az=parseFloat(am)}else{az=G(at,0.5)}var ap=[];var ae=[];for(var ay=0,au=aD.length;ay<au;ay++){ap... |
18,483 | 86c47e8c97d93951c412c2ec21ee17fc | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | F::ao | function | function ao(aE,aF){if(aE-aF==0){return Math.pow(10,10)}else{return aE-aF}} |
18,484 | 898529185f15fa7394a1e455c082cbe4 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | h | function | function h(ac){var ab;ac=Math.abs(ac);if(ac>=10){ab="%d"}else{if(ac>1){if(ac===parseInt(ac,10)){ab="%d"}else{ab="%.1f"}}else{var ad=-Math.floor(Math.log(ac)/Math.LN10);ab="%."+ad+"f"}}return ab} |
18,485 | ed56ee39719da486ed89c896639e638e | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | aw | function | function aw(ay){var az=parseInt(H(ay).css("line-height"),10);if(isNaN(az)){az=parseInt(H(ay).css("font-size"),10)*1.2}return az} |
18,486 | 6fb92e180d6f922cad99005ff711fbb5 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | al | function | function al(aq,ap){var aw=parseFloat(ap[1]);var av=parseFloat(ap[2]);var au=parseFloat(ap[3]);var at=aa.config.defaultCentury;var ao,an,ax,ar;if(aw>31){an=au;ax=av;ao=at+aw}else{an=av;ax=aw;ao=at+au}ar=ax+"/"+an+"/"+ao;return aq.replace(/^([0-9]{1,2})[-\/]([0-9]{1,2})[-\/]([0-9]{1,2})/,ar)} |
18,487 | 283a8a9de337e0cf199ca6251e8a1dda | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | W | function | function W(ad,ae){if(ae.indexOf){return ae.indexOf(ad)}for(var ab=0,ac=ae.length;ab<ac;ab++){if(ae[ab]===ad){return ab}}return -1} |
18,488 | 42e5fd8d2f15486805be54d796d874b8 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | _normalizeArguments | function | function _normalizeArguments(b,a,c,d){if($.isPlainObject(b)){return b}b={effect:b};if(a===undefined){a={}}if($.isFunction(a)){d=a;c=null;a={}}if($.type(a)==="number"||$.fx.speeds[a]){d=c;c=a;a={}}if($.isFunction(c)){d=c;c=null}if(a){$.extend(b,a)}c=c||a.duration;b.duration=$.fx.off?0:typeof c==="number"?c:c in $.fx.spe... |
18,489 | 791a1cf29c8a716dec19645c06550ebb | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | ab | function | function ab(an,ao,al,aj,am,ak){if(aj!=null){an=an.slice(0,aj)}return ad(an,"",ao,al,am,ak)} |
18,490 | 0480cfa55f443aaa775a9d71f54b2339 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | ah | function | function ah(an,aj,ak,am){var al=(an.length>=aj)?"":Array(1+aj-an.length>>>0).join(ak);return am?an+al:al+an} |
18,491 | 1757b50bb972c67837b3472aa2b2e0e6 | swh:1:cnt:52b57505098a498f467985286dad1d07dae25a84;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=57-57/ | b35926da64b8a4db69d361df8d38101babe0ed74 | pageview-api | analytics | web/static/jqplot/jquery.jqplot.min.js | j | function | function j(ab){if(ab===null){return"[object Null]"}return Object.prototype.toString.call(ab)} |
18,492 | d69f0b18b9a4de1a10e129c9bd5cea6d | swh:1:cnt:11e6d067962ed3d4b275b0984d81e0ad1f7362a4;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=871-873/ | 9ece192be699d9154098ce7134da6db47aac0dd8 | pageview-api | analytics | web/static/jqplot/jquery.js | jQuerySub | function | function jQuerySub( selector, context ) {
return new jQuerySub.fn.init( selector, context );
} |
18,493 | d4433d0d7859caf52bf8747052a0d002 | swh:1:cnt:11e6d067962ed3d4b275b0984d81e0ad1f7362a4;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=936-953/ | 9ece192be699d9154098ce7134da6db47aac0dd8 | pageview-api | analytics | web/static/jqplot/jquery.js | doScrollCheck | function | // The DOM ready check for Internet Explorer
function doScrollCheck() {
if ( jQuery.isReady ) {
return;
}
try {
// If IE is used, use the trick by Diego Perini
// http://javascript.nwbox.com/IEContentLoaded/
document.documentElement.doScroll("left");
} catch(e) {
setTimeout( doScrollCheck, 1 );
return;... |
18,494 | 84d2e0c2ba9de298df9c64cf8f547ceb | swh:1:cnt:11e6d067962ed3d4b275b0984d81e0ad1f7362a4;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=1127-1137/ | 9ece192be699d9154098ce7134da6db47aac0dd8 | pageview-api | analytics | web/static/jqplot/jquery.js | resolveFunc | function | function resolveFunc( i ) {
return function( value ) {
args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
if ( !( --count ) ) {
// Strange bug in FF4:
// Values changed onto the arguments object sometimes end up as undefined values
// outside the $.when method. Clon... |
18,495 | 36be9b7f2315f71014ce16e2af4380f4 | swh:1:cnt:11e6d067962ed3d4b275b0984d81e0ad1f7362a4;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=1774-1792/ | 9ece192be699d9154098ce7134da6db47aac0dd8 | pageview-api | analytics | web/static/jqplot/jquery.js | handleQueueMarkDefer | function | function handleQueueMarkDefer( elem, type, src ) {
var deferDataKey = type + "defer",
queueDataKey = type + "queue",
markDataKey = type + "mark",
defer = jQuery.data( elem, deferDataKey, undefined, true );
if ( defer &&
( src === "queue" || !jQuery.data( elem, queueDataKey, undefined, true ) ) &&
( src === ... |
18,496 | 2f14e6a0d6f701697aee00680d70f342 | swh:1:cnt:11e6d067962ed3d4b275b0984d81e0ad1f7362a4;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=3655-3741/ | 9ece192be699d9154098ce7134da6db47aac0dd8 | pageview-api | analytics | web/static/jqplot/jquery.js | liveHandler | function | function liveHandler( event ) {
var stop, maxLevel, related, match, handleObj, elem, j, i, l, data, close, namespace, ret,
elems = [],
selectors = [],
events = jQuery._data( this, "events" );
// Make sure we avoid non-left-click bubbling in Firefox (#3861) and disabled elements in IE (#6911)
if ( event.liveFi... |
18,497 | 46bba396ba4f5335afd5f743b2973d3f | swh:1:cnt:11e6d067962ed3d4b275b0984d81e0ad1f7362a4;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=5058-5089/ | 9ece192be699d9154098ce7134da6db47aac0dd8 | pageview-api | analytics | web/static/jqplot/jquery.js | dirNodeCheck | function | function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
for ( var i = 0, l = checkSet.length; i < l; i++ ) {
var elem = checkSet[i];
if ( elem ) {
var match = false;
elem = elem[dir];
while ( elem ) {
if ( elem.sizcache === doneName ) {
match = checkSet[elem.sizset];
bre... |
18,498 | de34c65f04690da95cab0f6901cead3c | swh:1:cnt:11e6d067962ed3d4b275b0984d81e0ad1f7362a4;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=5880-5907/ | 9ece192be699d9154098ce7134da6db47aac0dd8 | pageview-api | analytics | web/static/jqplot/jquery.js | cloneCopyEvent | function | function cloneCopyEvent( src, dest ) {
if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
return;
}
var internalKey = jQuery.expando,
oldData = jQuery.data( src ),
curData = jQuery.data( dest, oldData );
// Switch to use the internal data object, if it exists, for the next
// stage of data copying
if... |
18,499 | d1b808d02b6824d56422b4dea9bf17e8 | swh:1:cnt:11e6d067962ed3d4b275b0984d81e0ad1f7362a4;origin=https://gerrit.wikimedia.org/r/analytics/pageview-api.git;lines=3743-3745/ | 9ece192be699d9154098ce7134da6db47aac0dd8 | pageview-api | analytics | web/static/jqplot/jquery.js | liveConvert | function | function liveConvert( type, selector ) {
return (type && type !== "*" ? type + "." : "") + selector.replace(rperiod, "`").replace(rspaces, "&");
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.