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
11,800
ac8772563f39d4c215fcf2d2233c8bb5
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15303-15315/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseConforms
function
/** * The base implementation of `_.conforms` which doesn't clone `source`. * * @private * @param {Object} source The object of property predicates to conform to. * @returns {Function} Returns the new spec function. */ function baseConforms(source) { var props = keys(source); ...
11,801
4318d17c41868cea18f05de30939f76f
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=6866-6887/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
getDefaultDisplay
function
function getDefaultDisplay( elem ) { var temp, doc = elem.ownerDocument, nodeName = elem.nodeName, display = defaultDisplayMap[ nodeName ]; if ( display ) { return display; } temp = doc.body.appendChild( doc.createElement( nodeName ) ); display = jQuery.css( temp, "display" ); temp.parentNode.removeChi...
11,802
6c7ed16ce25c54e41be438686a16c914
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16349-16363/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
basePick
function
/** * The base implementation of `_.pick` without support for individual * property identifiers. * * @private * @param {Object} object The source object. * @param {string[]} props The property identifiers to pick. * @returns {Object} Returns the new object. */ function basePi...
11,803
26af9d0d862ab86067d88b3fdff42dc0
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=19072-19089/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
nativeKeysIn
function
/** * This function is like * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * except that it includes inherited enumerable properties. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. ...
11,804
bb0d9a8d65b6cc17ca682aca7b45cc04
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=20921-20943/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
uniq
function
/** * Creates a duplicate-free version of an array, using * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons, in which only the first occurrence of each element * is kept. The order of result values is determined by the order they occur ...
11,805
30038ef0c1c8860a5e1472a92365807a
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=28580-28615/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
times
function
/** * Invokes the iteratee `n` times, returning an array of the results of * each invocation. The iteratee is invoked with one argument; (index). * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {number} n The number of times to invoke `iteratee`. * @param ...
11,806
d0221065adeb1dea0fc56507f9f163c9
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31429-31461/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
computeMonthsParse
function
function computeMonthsParse () { function cmpLenRev(a, b) { return b.length - a.length; } var shortPieces = [], longPieces = [], mixedPieces = [], i, mom; for (i = 0; i < 12; i++) { // make the regex if we don't have it already mom = creat...
11,807
4664d4c292874f223fc26f77212f4e59
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33541-33543/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
toNow
function
function toNow (withoutSuffix) { return this.to(local__createLocal(), withoutSuffix); }
11,808
d3f6b5c9483e36b6e0af7d44464eca2e
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33670-33672/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
moment_valid__isValid
function
function moment_valid__isValid () { return valid__isValid(this); }
11,809
79cfc2ba12daf45d3f8949067771e0b7
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=37458-37478/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
arraysEqual
function
function arraysEqual(one, two) { if (!isArray(one) || !isArray(two)) { return false; } // arrays can't be equal if they have different amount of content if (one.length !== two.length) { return false; } one.sort(); two.sort(); for (var i = 0, l = one.length; i < l; i++) { ...
11,810
01852c4d20a9e2c57b7c4a95e2f61355
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=20190-20213/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
nth
function
/** * Gets the element at index `n` of `array`. If `n` is negative, the nth * element from the end is returned. * * @static * @memberOf _ * @since 4.11.0 * @category Array * @param {Array} array The array to query. * @param {number} [n=0] The index of the element to return. ...
11,811
09b5264e7e641e915621e8b9dc2c61fe
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=2215-2216/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
l
function
function l(b){var c=[],d={},e=[];a.a.D(b,function Z(h){if(!d[h]){var f= a.getBindingHandler(h);f&&(f.after&&(e.push(h),a.a.q(f.after,function(c){if(b[c]){if(-1!==a.a.o(e,c))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+e.join(", "));Z(c)}}),e.length--),c.push({key:h,fc:f})...
11,812
4525aace32fde25c63f8f8cce07914ed
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=1198-1203/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
newContext::callGetModule
function
function callGetModule(args) { //Skip modules already defined. if (!hasProp(defined, args[0])) { getModule(makeModuleMap(args[0], null, true)).init(args[1], args[2]); } }
11,813
0fff4269ca09efc5ddc54b6c2d36ce0e
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=1220-1240/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
newContext::getScriptData
function
/** * Given an event from a script node, get the requirejs info from it, * and then removes the event listeners on the node. * @param {Event} evt * @returns {Object} */ function getScriptData(evt) { //Using currentTarget instead of target for Firefox 2.0'...
11,814
99aa518b8c49cac29cecb046f9d66763
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=3172-3179/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createCache::cache
function
function cache( key, value ) { // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) if ( keys.push( key + " " ) > Expr.cacheLength ) { // Only keep the most recent entries delete cache[ keys.shift() ]; } return (cache[ key + " " ] = value); }
11,815
803b8ece5a31279a2bb7e3b960d0a5d0
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14307-14314/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseLodash
function
/** * The function whose prototype chain sequence wrappers inherit from. * * @private */ function baseLodash() { // No operation performed. }
11,816
2c738fe2ab5fb95dedbe8a0d779334a4
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15627-15645/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseGet
function
/** * The base implementation of `_.get` without support for default values. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path of the property to get. * @returns {*} Returns the resolved value. */ function baseGet(object, path) { ...
11,817
f5a75ea9fd00b8da271c7fe3f536c352
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=13521-13541/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseReduce
function
/** * The base implementation of `_.reduce` and `_.reduceRight`, without support * for iteratee shorthands, which iterates over `collection` using `eachFunc`. * * @private * @param {Array|Object} collection The collection to iterate over. * @param {Function} iteratee The function invoked per iteration...
11,818
34aa460d250183c6f9e3906f2dea2be9
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=3255-3264/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createInputPseudo
function
/** * Returns a function to use in pseudos for input types * @param {String} type */ function createInputPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === type; }; }
11,819
8f031edaec407c7cc6f2871d272cbabc
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=13377-13386/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
asciiWords
function
/** * Splits an ASCII `string` into an array of its words. * * @private * @param {string} The string to inspect. * @returns {Array} Returns the words of `string`. */ function asciiWords(string) { return string.match(reAsciiWord) || []; }
11,820
edc8cef8a5a1bcd3be8c8404eabf921b
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16647-16656/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseShuffle
function
/** * The base implementation of `_.shuffle`. * * @private * @param {Array|Object} collection The collection to shuffle. * @returns {Array} Returns the new shuffled array. */ function baseShuffle(collection) { return shuffleSelf(values(collection)); }
11,821
8274bf325e03a52301206bdd96b1a062
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30465-30471/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
map
function
function map(arr, fn) { var res = [], i; for (i = 0; i < arr.length; ++i) { res.push(fn(arr[i], i)); } return res; }
11,822
f9dea38b87eb623c198d95d201f1a875
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=27687-27714/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
words
function
/** * Splits `string` into an array of its words. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to inspect. * @param {RegExp|string} [pattern] The pattern to match words. * @param- {Object} [guard] Enables use as an iter...
11,823
7013cbe7742a15342dca38df56a05d77
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=22915-22921/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
debounce::remainingWait
function
function remainingWait(time) { var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, result = wait - timeSinceLastCall; return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result; }
11,824
aa5145ebf36727dc6c6418b928d4a8f2
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=3213-3225/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
addHandle
function
/** * Adds the same handler for all of the specified attrs * @param {String} attrs Pipe-separated list of attributes * @param {Function} handler The method that will be applied */ function addHandle( attrs, handler ) { var arr = attrs.split("|"), i = arr.length; while ( i-- ) { Expr.attrHandle[ arr[i] ] = ha...
11,825
5160cd9694f66f3639ece06e5a09f447
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15647-15661/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseGetAllKeys
function
/** * The base implementation of `getAllKeys` and `getAllKeysIn` which uses * `keysFunc` and `symbolsFunc` to get the enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @param {Function} keysFunc The function to get the ke...
11,826
bb6ff698a0854f07700d52b9c4ee7c52
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=359-369/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
newContext::removeScript
function
function removeScript(name) { if (isBrowser) { each(scripts(), function (scriptNode) { if (scriptNode.getAttribute('data-requiremodule') === name && scriptNode.getAttribute('data-requirecontext') === context.contextName) { ...
11,827
7b6babd25b9d72f2e3dbf47498d730eb
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=2245-2246/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
t
function
function t(){clearTimeout(s);v=s=n;var c= b.value;u!==c&&(u=c,a.h.Ea(d(),g,"textInput",c))}
11,828
5f3e029c3a181f34ba79ae99fd23cd03
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=2259-2259/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
u
function
function u(a,c){s=q.createChildContext(a,g.as,function(a){a.$index=c});var d=f(b,a,s);return e(null,"ignoreTargetNode",d,s,g)}
11,829
03d53d97da0b39986ed78f18b9ffbdbd
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17131-17142/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
cloneArrayBuffer
function
/** * Creates a clone of `arrayBuffer`. * * @private * @param {ArrayBuffer} arrayBuffer The array buffer to clone. * @returns {ArrayBuffer} Returns the cloned array buffer. */ function cloneArrayBuffer(arrayBuffer) { var result = new arrayBuffer.constructor(arrayBuffer.byteLength...
11,830
d85d008fc0c917c852f3271ae70c64ca
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=22253-22280/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
reduceRight
function
/** * This method is like `_.reduce` except that it iterates over elements of * `collection` from right to left. * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [iteratee=_...
11,831
83c700d01ea4637928b526513db6af6c
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33491-33493/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
toString
function
function toString () { return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); }
11,832
7d3c8d62c8debe9a36d0dbf927979387
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31074-31076/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
expandFormat::replaceLongDateFormatTokens
function
function replaceLongDateFormatTokens(input) { return locale.longDateFormat(input) || input; }
11,833
532c037e097cc11f978c7dfe19138481
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31774-31776/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
localeWeekdaysMin
function
function localeWeekdaysMin (m) { return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin; }
11,834
97bd80c03d339fcb5bb2ed91a0f39969
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=32761-32772/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
configFromObject
function
function configFromObject(config) { if (config._d) { return; } var i = normalizeObjectUnits(config._i); config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) { return obj && parseInt(obj, 10); }); ...
11,835
077bc77e2d0648dee94bfd191ae02a61
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=36513-36533/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
basicToDigit
function
/** * Converts a basic code point into a digit/integer. * @see `digitToBasic()` * @private * @param {Number} codePoint The basic numeric code point value. * @returns {Number} The numeric value of a basic code point (for use in * representing integers) in the range `0` to `base - 1`, or `base` if * the cod...
11,836
5e94f655e2b8f767219a5e2b80b5c3e9
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14951-14962/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
stackHas
function
/** * Checks if a stack value for `key` exists. * * @private * @name has * @memberOf Stack * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function stackHas(key) { return this.__data...
11,837
6cb2bcfddb6cd169d55b85892953c542
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=2226-2226/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
f
function
function f(a,b,c){"string"===typeof b.require?O||x.require?(O||x.require)([b.require],c):a("Uses require, but no AMD loader is present"):c(b)}
11,838
2a2292d4c9f491c2262db9909675fde5
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=3277-3331/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createDisabledPseudo
function
/** * Returns a function to use in pseudos for :enabled/:disabled * @param {Boolean} disabled true for :disabled; false for :enabled */ function createDisabledPseudo( disabled ) { // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable return function( elem ) { // Only cer...
11,839
df6613a9a645c4bbbaf84601fc255e5a
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=9057-9069/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createTween
function
function createTween( value, prop, animation ) { var tween, collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), index = 0, length = collection.length; for ( ; index < length; index++ ) { if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { // We're don...
11,840
28704e92fd24c95bb1b6f396f1749e56
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16051-16061/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseIsTypedArray
function
/** * The base implementation of `_.isTypedArray` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. */ function baseIsTypedArray(value) { return isObjectLike(value) && ...
11,841
caa91520b5213a77c71dc7c6c71fb375
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16142-16158/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseMap
function
/** * The base implementation of `_.map` without support for iteratee shorthands. * * @private * @param {Array|Object} collection The collection to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the new mapped array. */ fu...
11,842
627ac7de25ddc64dda49cfa69d530148
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=19282-19295/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
toKey
function
/** * Converts `value` to a string key if it's not a string or symbol. * * @private * @param {*} value The value to inspect. * @returns {string|symbol} Returns the key. */ function toKey(value) { if (typeof value == 'string' || isSymbol(value)) { return value; } ...
11,843
307bc5995c965173b918a773bb1e8abf
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=20520-20545/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
sortedIndexOf
function
/** * This method is like `_.indexOf` except that it performs a binary * search on a sorted `array`. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @returns {number} R...
11,844
7b7d8f177154ffe40a75b36270130b32
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=24781-24800/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isWeakSet
function
/** * Checks if `value` is classified as a `WeakSet` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a weak set, else `false`. * @example * * _.isWeakSet(new ...
11,845
9ded9e20ae684b805c2b16b41325ae27
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30644-30655/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
Moment
function
// Moment prototype object function Moment(config) { copyConfig(this, config); this._d = new Date(config._d != null ? config._d.getTime() : NaN); // Prevent infinite loop in case updateOffset creates new moment // objects. if (updateInProgress === false) { updateI...
11,846
bcfa0801ab5295d3ab31942139899f32
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=28055-28083/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
matchesProperty
function
/** * Creates a function that performs a partial deep comparison between the * value at `path` of a given object to `srcValue`, returning `true` if the * object value is equivalent, else `false`. * * **Note:** Partial comparisons will match empty array and empty object * `srcValue` values ...
11,847
600a112267c5d57ef038cb67baba0107
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30442-30444/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isArray
function
function isArray(input) { return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]'; }
11,848
56bca937cf2d6a637d9ea2bde7251c6b
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=34508-34556/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
iso_string__toISOString
function
function iso_string__toISOString() { // for ISO strings we do not use the normal bubbling rules: // * milliseconds bubble up until they become hours // * days do not bubble at all // * months bubble up until they become years // This is because there is no context-free convers...
11,849
edf904f43c91be7f8efa9856e9d921d4
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33757-33759/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
getISOWeeksInYear
function
function getISOWeeksInYear () { return weeksInYear(this.year(), 1, 4); }
11,850
a76f51c3d76ca08f826678c8a2e1a441
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=605-609/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
newContext::cleanRegistry
function
function cleanRegistry(id) { //Clean up machinery used for waiting modules. delete registry[id]; delete enabledRegistry[id]; }
11,851
6a8b7d7ce46a5d86f6330da767ed1b1f
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=639-724/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
newContext::checkLoaded
function
function checkLoaded() { var err, usingPathFallback, waitInterval = config.waitSeconds * 1000, //It is possible to disable the wait interval by using waitSeconds of 0. expired = waitInterval && (context.startTime + waitInterval) < new Date().getTime(), ...
11,852
76273cdff7201bfe7f86dbf4aee51b3f
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=13213-13225/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
arrayIncludes
function
/** * A specialized version of `_.includes` for arrays without support for * specifying an index to search from. * * @private * @param {Array} [array] The array to inspect. * @param {*} target The value to search for. * @returns {boolean} Returns `true` if `target` is found, else `false`. */ f...
11,853
0f04e1376fcb8092481241297aefc655
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=5730-5732/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
Thrower
function
function Thrower( ex ) { throw ex; }
11,854
139f6a46fbf7876713436a057bf80a52
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=19193-19206/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
setWrapToString
function
/** * Sets the `toString` method of `wrapper` to mimic the source of `reference` * with wrapper details in a comment at the top of the source body. * * @private * @param {Function} wrapper The function to modify. * @param {Function} reference The reference function. * @param {number} ...
11,855
2c7646b2cb11618a8c85534c9b332675
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=20135-20152/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
last
function
/** * Gets the last element of `array`. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to query. * @returns {*} Returns the last element of `array`. * @example * * _.last([1, 2, 3]); * // => 3 */ function l...
11,856
ffae304e177f171336ca0ceb1b1eeb4f
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=20669-20686/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
tail
function
/** * Gets all but the first element of `array`. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to query. * @returns {Array} Returns the slice of `array`. * @example * * _.tail([1, 2, 3]); * // => [2, 3] */ ...
11,857
a68eb2cba1196fbf921932330126520b
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=24422-24455/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isNaN
function
/** * Checks if `value` is `NaN`. * * **Note:** This method is based on * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for * `undefined` and other non-number values. * * @static * @memberOf...
11,858
b547df7c69b7453363c3f7180279d173
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=26543-26611/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
random
function
/** * Produces a random number between the inclusive `lower` and `upper` bounds. * If only one argument is provided a number between `0` and the given number * is returned. If `floating` is `true`, or either `lower` or `upper` are * floats, a floating-point number is returned instead of an integer. ...
11,859
6f4536d17c1ebe49bc387cb69ef599bc
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31639-31645/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
localeWeek
function
// HELPERS // LOCALES function localeWeek (mom) { return weekOfYear(mom, this._week.dow, this._week.doy).week; }
11,860
dde4b1139b6d82f16ec18a11ae81bd23
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33573-33575/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
localeData
function
function localeData () { return this._locale; }
11,861
4169957905a2024a512f234ee45bf71a
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=28351-28375/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
property
function
/** * Creates a function that returns the value at `path` of a given object. * * @static * @memberOf _ * @since 2.4.0 * @category Util * @param {Array|string} path The path of the property to get. * @returns {Function} Returns the new accessor function. * @example * ...
11,862
f5d1a7ca892dc360940e5c71490d1504
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=34290-34296/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
absCeil
function
function absCeil (number) { if (number < 0) { return Math.floor(number); } else { return Math.ceil(number); } }
11,863
6dfdd17acf7ea3bebd4e8921ec4fc22a
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=7158-7160/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
returnFalse
function
function returnFalse() { return false; }
11,864
9e3929849fdb41b9a6009d319454d19a
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14710-14731/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
listCacheSet
function
/** * Sets the list cache `key` to `value`. * * @private * @name set * @memberOf ListCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the list cache instance. */ function listCacheSet(key, value) { ...
11,865
7bb471bcb95fc88c1a3d6564cb1abbc8
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=4782-4891/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
matcherFromGroupMatchers
function
function matcherFromGroupMatchers( elementMatchers, setMatchers ) { var bySet = setMatchers.length > 0, byElement = elementMatchers.length > 0, superMatcher = function( seed, context, xml, results, outermost ) { var elem, j, matcher, matchedCount = 0, i = "0", unmatched = seed && [], setMatched ...
11,866
19052a352699bc0d8c08aa538ef61e0d
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16553-16562/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseSample
function
/** * The base implementation of `_.sample`. * * @private * @param {Array|Object} collection The collection to sample. * @returns {*} Returns the random element. */ function baseSample(collection) { return arraySample(values(collection)); }
11,867
80b6ff1a59b46e00d9195550b714739e
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=22896-22904/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
debounce::invokeFunc
function
function invokeFunc(time) { var args = lastArgs, thisArg = lastThis; lastArgs = lastThis = undefined; lastInvokeTime = time; result = func.apply(thisArg, args); return result; }
11,868
24334a07c25d914560abdacb5ca4941e
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=23165-23185/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
once
function
/** * Creates a function that is restricted to invoking `func` once. Repeat calls * to the function return the value of the first invocation. The `func` is * invoked with the `this` binding and arguments of the created function. * * @static * @memberOf _ * @since 0.1.0 * @categor...
11,869
fc01be68cfcbeefea73f87b8dc1ab4b7
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=23336-23367/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
rest
function
/** * Creates a function that invokes `func` with the `this` binding of the * created function and arguments from `start` and beyond provided as * an array. * * **Note:** This method is based on the * [rest parameter](https://mdn.io/rest_parameters). * * @static * @memberOf ...
11,870
c841a470589099c4933dfe2ace8eb787
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=23500-23525/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
wrap
function
/** * Creates a function that provides `value` to `wrapper` as its first * argument. Any additional arguments provided to the function are appended * to those provided to the `wrapper`. The wrapper is invoked with the `this` * binding of the created function. * * @static * @memberOf _...
11,871
0bc69bfbf6a5550a5bbf52e451ec84e7
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=24760-24779/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isWeakMap
function
/** * Checks if `value` is classified as a `WeakMap` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a weak map, else `false`. * @example * * _.isWeakMap(new ...
11,872
5aa0c518f968bbc89b9f04e2199b980c
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=26719-26752/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
escape
function
/** * Converts the characters "&", "<", ">", '"', and "'" in `string` to their * corresponding HTML entities. * * **Note:** No other characters are escaped. To escape additional * characters use a third-party library like [_he_](https://mths.be/he). * * Though the ">" character is esc...
11,873
fbcde6a45d5642d366a40f442ae4cc83
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=34095-34097/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
moment__createUnix
function
function moment__createUnix (input) { return local__createLocal(input * 1000); }
11,874
9b40762584a90e7182d998b463052fb5
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=36492-36511/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
ucs2encode
function
/** * Creates a string based on an array of numeric code points. * @see `punycode.ucs2.decode` * @memberOf punycode.ucs2 * @name encode * @param {Array} codePoints The array of numeric code points. * @returns {String} The new Unicode string (UCS-2). */ function ucs2encode(array) { return map(array, fun...
11,875
1befa5d5c9b8023b55c5b5d74774363d
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=35026-35026/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
AnnotationsApi
function
function AnnotationsApi () {}
11,876
639dbcdbe6a1c28e9495095db318c58f
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=39558-39572/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
URITemplate
function
function URITemplate(expression) { // serve from cache where possible if (URITemplate._cache[expression]) { return URITemplate._cache[expression]; } // Allow instantiation without the 'new' keyword if (!(this instanceof URITemplate)) { return new URITemplate(expression); } this...
11,877
954814633c62c4e8577c3de77fbc1f3e
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=27833-27859/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
conforms
function
/** * Creates a function that invokes the predicate properties of `source` with * the corresponding property values of a given object, returning `true` if * all predicates return truthy, else `false`. * * **Note:** The created function is equivalent to `_.conformsTo` with * `source` partia...
11,878
e2f8c1d6dc649ae7a447fb6416897874
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=3266-3275/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createButtonPseudo
function
/** * Returns a function to use in pseudos for buttons * @param {String} type */ function createButtonPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return (name === "input" || name === "button") && elem.type === type; }; }
11,879
00bad21b437c93ffb1654061934c87d4
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=28144-28214/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
mixin
function
/** * Adds all own enumerable string keyed function properties of a source * object to the destination object. If `object` is a function, then methods * are added to its prototype as well. * * **Note:** Use `_.runInContext` to create a pristine `lodash` function to * avoid conflicts caused...
11,880
829e3dcd8ceaabaaf1450fc20bc26ca0
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14567-14583/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
hashGet
function
/** * Gets the hash value for `key`. * * @private * @name get * @memberOf Hash * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function hashGet(key) { var data = this.__data__; if (nativeCreate) { var result = ...
11,881
4f9a0a60fa0554dad09c7fa628bfaea3
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17564-17589/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createCaseFirst
function
/** * Creates a function like `_.lowerFirst`. * * @private * @param {string} methodName The name of the `String` case method to use. * @returns {Function} Returns the new case function. */ function createCaseFirst(methodName) { return function(string) { string = toString(...
11,882
c8f700fbeeb2ef6d7293350227a5af4a
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17756-17827/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createHybrid
function
/** * Creates a function that wraps `func` to invoke it with optional `this` * binding of `thisArg`, partial application, and currying. * * @private * @param {Function|string} func The function or method name to wrap. * @param {number} bitmask The bitmask flags. See `createWrap` for more d...
11,883
16a595c5b8c7d978e145733803e00d31
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=19558-19590/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
drop
function
/** * Creates a slice of `array` with `n` elements dropped from the beginning. * * @static * @memberOf _ * @since 0.5.0 * @category Array * @param {Array} array The array to query. * @param {number} [n=1] The number of elements to drop. * @param- {Object} [guard] Enables use...
11,884
c9f5067310212365383d9313343f78ce
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=19917-19942/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
fromPairs
function
/** * The inverse of `_.toPairs`; this method returns an object composed * from key-value `pairs`. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} pairs The key-value pairs. * @returns {Object} Returns the new object. * @example * *...
11,885
2a3b97999afa7f3fa15bd5f91d6b799e
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=24065-24095/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isEqual
function
/** * Performs a deep comparison between two values to determine if they are * equivalent. * * **Note:** This method supports comparing arrays, array buffers, booleans, * date objects, error objects, maps, numbers, `Object` objects, regexes, * sets, strings, symbols, and typed arrays. `Obj...
11,886
bf3bf6a9d636c112edc34a81651f0b1a
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=24385-24420/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isMatchWith
function
/** * This method is like `_.isMatch` except that it accepts `customizer` which * is invoked to compare values. If `customizer` returns `undefined`, comparisons * are handled by the method instead. The `customizer` is invoked with five * arguments: (objValue, srcValue, index|key, object, source). ...
11,887
9471fd8f4036245acf62d116b7ab3957
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=28252-28277/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
nthArg
function
/** * Creates a function that gets the argument at index `n`. If `n` is negative, * the nth argument from the end is returned. * * @static * @memberOf _ * @since 4.0.0 * @category Util * @param {number} [n=0] The index of the argument to return. * @returns {Function} Returns...
11,888
2cbd10a9df6a1abe817471b630f369db
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33635-33637/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
to_type__valueOf
function
function to_type__valueOf () { return this._d.valueOf() - ((this._offset || 0) * 60000); }
11,889
fed97ce6c70b40b7cc9b2948f4451ed0
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31983-32022/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
computeWeekdaysParse
function
function computeWeekdaysParse () { function cmpLenRev(a, b) { return b.length - a.length; } var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], i, mom, minp, shortp, longp; for (i = 0; i < 7; i++) { // make the regex if we don't h...
11,890
c311841ec2142eed6612dcb392179837
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31897-31903/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
getSetLocaleDayOfWeek
function
function getSetLocaleDayOfWeek (input) { if (!this.isValid()) { return input != null ? this : NaN; } var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; return input == null ? weekday : this.add(input - weekday, 'd'); }
11,891
18590e846d9b6159aedfdd7e5ba48726
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33358-33368/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
moment_calendar__calendar
function
function moment_calendar__calendar (time, formats) { // We want to compare the start of today, vs this. // Getting start-of-today depends on whether we're local/utc/offset or not. var now = time || local__createLocal(), sod = cloneWithOffset(now, this).startOf('day'), for...
11,892
c6522c7e54f7369083b3e7c950040f6b
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=8512-8530/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
vendorPropName
function
// Return a css property mapped to a potentially vendor prefixed property function vendorPropName( name ) { // Shortcut for names that are not vendor prefixed if ( name in emptyStyle ) { return name; } // Check for vendor prefixed names var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), i = cssPrefixes...
11,893
f8b37ce7da4c7a05abf56b8a097a508c
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14843-14861/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
SetCache
function
/*------------------------------------------------------------------------*/ /** * * Creates an array cache object to store unique values. * * @private * @constructor * @param {Array} [values] The values to cache. */ function SetCache(values) { var index = -1, ...
11,894
1160008969e3cfc524a759bdb72c2c30
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16230-16305/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseMergeDeep
function
/** * A specialized version of `baseMerge` for arrays and objects which performs * deep merges and tracks traversed objects enabling objects with circular * references to be merged. * * @private * @param {Object} object The destination object. * @param {Object} source The source objec...
11,895
c90f3ab43c2ff4b56ca7b3de9c5f36ea
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16793-16818/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseSortedUniq
function
/** * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without * support for iteratee shorthands. * * @private * @param {Array} array The array to inspect. * @param {Function} [iteratee] The iteratee invoked per element. * @returns {Array} Returns the new duplicate free ...
11,896
eb4bfed3d6381054887bd8298b4299ba
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17543-17562/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createBind
function
/** * Creates a function that wraps `func` to invoke it with the optional `this` * binding of `thisArg`. * * @private * @param {Function} func The function to wrap. * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {*} [thisArg] The `this` bindin...
11,897
93eb803d6a431bc0ba94af65c2015fec
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18175-18248/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
equalArrays
function
/** * A specialized version of `baseIsEqualDeep` for arrays with support for * partial deep comparisons. * * @private * @param {Array} array The array to compare. * @param {Array} other The other array to compare. * @param {Function} equalFunc The function to determine equivalents of ...
11,898
0c5d28580e02224c77d8b3c4ae44b9d0
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18250-18331/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
equalByTag
function
/** * A specialized version of `baseIsEqualDeep` for comparing objects of * the same `toStringTag`. * * **Note:** This function only supports comparing values with tags of * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. * * @private * @param {Object} object The obj...
11,899
8cfe5ba4b08dbb4a8c5d33cc465735ba
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18766-18783/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
insertWrapDetails
function
/** * Inserts wrapper `details` in a comment at the top of the `source` body. * * @private * @param {string} source The source to modify. * @returns {Array} details The details to insert. * @returns {string} Returns the modified source. */ function insertWrapDetails(source, detail...