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,700 | 2133dac5c2386ae5252b1d2fda5f6b77 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15687-15697/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | baseHas | function | /**
* The base implementation of `_.has` without support for deep paths.
*
* @private
* @param {Object} [object] The object to query.
* @param {Array|string} key The key to check.
* @returns {boolean} Returns `true` if `key` exists, else `false`.
*/
function baseHas(object, key) {... |
11,701 | 8d29f3934cd737b6907e0eb1687ef06f | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15836-15845/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | baseIsArrayBuffer | function | /**
* The base implementation of `_.isArrayBuffer` without Node.js optimizations.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
*/
function baseIsArrayBuffer(value) {
return isObjectLike(value)... |
11,702 | 318364d1ed953d49ec07a7db4bc21f94 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17054-17063/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | castFunction | function | /**
* Casts `value` to `identity` if it's not a function.
*
* @private
* @param {*} value The value to inspect.
* @returns {Function} Returns cast function.
*/
function castFunction(value) {
return typeof value == 'function' ? value : identity;
} |
11,703 | e1bc9c2c65c64c0948d9bf69193cf8a5 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18785-18795/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | isFlattenable | function | /**
* Checks if `value` is a flattenable `arguments` object or array.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
*/
function isFlattenable(value) {
return isArray(value) || isArguments(value) ||... |
11,704 | cb7a31584abee57b35495ee5b9e5c61f | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18871-18891/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | isLaziable | function | /**
* Checks if `func` has a lazy counterpart.
*
* @private
* @param {Function} func The function to check.
* @returns {boolean} Returns `true` if `func` has a lazy counterpart,
* else `false`.
*/
function isLaziable(func) {
var funcName = getFuncName(func),
other... |
11,705 | 3e42e6f5b1147d31c4c9cef1e40df7a1 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18939-18956/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | matchesStrictComparable | function | /**
* A specialized version of `matchesProperty` for source values suitable
* for strict equality comparisons, i.e. `===`.
*
* @private
* @param {string} key The key of the property to get.
* @param {*} srcValue The value to match.
* @returns {Function} Returns the new spec function.
... |
11,706 | b55c9c45b82b3027d7592b3a7c1663c8 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=21300-21326/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | tap | function | /**
* This method invokes `interceptor` and returns `value`. The interceptor
* is invoked with one argument; (value). The purpose of this method is to
* "tap into" a method chain sequence in order to modify intermediate results.
*
* @static
* @memberOf _
* @since 0.1.0
* @categor... |
11,707 | 509fb156e79310e8023eefd4c3eeae2c | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=41177-41198/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | formatNumeral | function | /************************************
Formatting
************************************/
// determine what type of formatting we need to do
function formatNumeral (n, format, roundingFunction) {
var output;
// figure out what kind of format we are dealing with
if (format.inde... |
11,708 | 9eb07e2ee400bd062a89fb1d98323c77 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31660-31665/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | getSetWeek | function | // MOMENTS
function getSetWeek (input) {
var week = this.localeData().week(this);
return input == null ? week : this.add((input - week) * 7, 'd');
} |
11,709 | 67da5074f0291edc2a0bb897d64530c1 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18685-18702/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | initCloneArray | function | /**
* Initializes an array clone.
*
* @private
* @param {Array} array The array to clone.
* @returns {Array} Returns the initialized clone.
*/
function initCloneArray(array) {
var length = array.length,
result = array.constructor(length);
// Add properties assign... |
11,710 | f9424ccea05637258b10d42a93bc5060 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30696-30701/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | warn | function | function warn(msg) {
if (utils_hooks__hooks.suppressDeprecationWarnings === false &&
(typeof console !== 'undefined') && console.warn) {
console.warn('Deprecation warning: ' + msg);
}
} |
11,711 | 767a05ebb79a1da8c69a1a4341cbe660 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=36453-36490/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | ucs2decode | function | /**
* Creates an array containing the numeric code points of each Unicode
* character in the string. While JavaScript uses UCS-2 internally,
* this function will convert a pair of surrogate halves (each of which
* UCS-2 exposes as separate characters) into a single code point,
* matching UTF-16.
* @see `pun... |
11,712 | dc63d9b08d643035f25a24a597af6013 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=10852-10909/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | ajaxHandleResponses | function | /* Handles responses to an ajax request:
* - finds the right dataType (mediates between content-type and expected dataType)
* - returns the corresponding response
*/
function ajaxHandleResponses( s, jqXHR, responses ) {
var ct, type, finalDataType, firstDataType,
contents = s.contents,
dataTypes = s.dataTypes;... |
11,713 | 72c27f7c54a162ad5f4cf796c1cf8750 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=139-141/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | scripts | function | function scripts() {
return document.getElementsByTagName('script');
} |
11,714 | 1b909dd545f39663e2161e68cbda9262 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15959-16011/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | baseIsMatch | function | /**
* The base implementation of `_.isMatch` without support for iteratee shorthands.
*
* @private
* @param {Object} object The object to inspect.
* @param {Object} source The object of property values to match.
* @param {Array} matchData The property names, values, and compare flags to ma... |
11,715 | eb6c342d53b7cee69b975a884bc2f58f | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16441-16475/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | basePullAt | function | /**
* The base implementation of `_.pullAt` without support for individual
* indexes or capturing the removed elements.
*
* @private
* @param {Array} array The array to modify.
* @param {number[]} indexes The indexes of elements to remove.
* @returns {Array} Returns `array`.
*/
... |
11,716 | 9516b6704913755f40f3ee60d805937b | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17065-17074/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | castPath | function | /**
* Casts `value` to a path array if it's not one.
*
* @private
* @param {*} value The value to inspect.
* @returns {Array} Returns the cast property path array.
*/
function castPath(value) {
return isArray(value) ? value : stringToPath(value);
} |
11,717 | df82b340d4bc420beead9f55db008a51 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17428-17438/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | copySymbols | function | /**
* Copies own symbol properties of `source` to `object`.
*
* @private
* @param {Object} source The object to copy symbols from.
* @param {Object} [object={}] The object to copy symbols to.
* @returns {Object} Returns `object`.
*/
function copySymbols(source, object) {
ret... |
11,718 | 38ab54a86951cc6d53b16ce428b38542 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=20569-20597/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | sortedLastIndexBy | function | /**
* This method is like `_.sortedLastIndex` except that it accepts `iteratee`
* which is invoked for `value` and each element of `array` to compute their
* sort ranking. The iteratee is invoked with one argument: (value).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Arr... |
11,719 | e7473f31ae2dc878c79d7f14715d475e | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=21592-21608/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | wrapperValue | function | /**
* Executes the chain sequence to resolve the unwrapped value.
*
* @name value
* @memberOf _
* @since 0.1.0
* @alias toJSON, valueOf
* @category Seq
* @returns {*} Returns the resolved unwrapped value.
* @example
*
* _([1, 2, 3]).value();
* // => [1, 2, 3]
... |
11,720 | 2ec4d8dafd55c1eb20bff54c67816692 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=24457-24488/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | isNative | function | /**
* Checks if `value` is a pristine native function.
*
* **Note:** This method can't reliably detect native functions in the presence
* of the core-js package because core-js circumvents this kind of detection.
* Despite multiple requests, the core-js maintainer has made it clear: any
* ... |
11,721 | 9c42dd2eb8823c670b70a59d97324bfe | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=28563-28578/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | stubTrue | function | /**
* This method returns `true`.
*
* @static
* @memberOf _
* @since 4.13.0
* @category Util
* @returns {boolean} Returns `true`.
* @example
*
* _.times(2, _.stubTrue);
* // => [true, true]
*/
function stubTrue() {
return true;
} |
11,722 | ff0f7c0d3308a67582ef404d32f9fe19 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31142-31155/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | addParseToken | function | function addParseToken (token, callback) {
var i, func = callback;
if (typeof token === 'string') {
token = [token];
}
if (typeof callback === 'number') {
func = function (input, array) {
array[callback] = toInt(input);
};
}
... |
11,723 | c348a562df36f6ed6ccdfdd3f7b36a2b | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31505-31509/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | daysInYear | function | // HELPERS
function daysInYear(year) {
return isLeapYear(year) ? 366 : 365;
} |
11,724 | 15fb65d719343f3d9f17511dc2255e20 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31963-31980/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | weekdaysMinRegex | function | function weekdaysMinRegex (isStrict) {
if (this._weekdaysParseExact) {
if (!hasOwnProp(this, '_weekdaysRegex')) {
computeWeekdaysParse.call(this);
}
if (isStrict) {
return this._weekdaysMinStrictRegex;
} else {
retur... |
11,725 | 1eeae2da0a2c4641b1df439487ae40f1 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=34413-34417/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | makeGetter | function | function makeGetter(name) {
return function () {
return this._data[name];
};
} |
11,726 | ddc86ffa30596da58459d21cbf3860a3 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=32932-32965/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | Duration | function | function Duration (duration) {
var normalizedInput = normalizeObjectUnits(duration),
years = normalizedInput.year || 0,
quarters = normalizedInput.quarter || 0,
months = normalizedInput.month || 0,
weeks = normalizedInput.week || 0,
days = normalizedIn... |
11,727 | 9c51404e5673f687f779643cf36f8d3b | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=26916-26947/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | padStart | function | /**
* Pads `string` on the left side if it's shorter than `length`. Padding
* characters are truncated if they exceed `length`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category String
* @param {string} [string=''] The string to pad.
* @param {number} [length=0] The paddi... |
11,728 | 4012bb0f9c38f794f9aefbdf873cedef | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=27492-27523/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | trimStart | function | /**
* Removes leading whitespace or specified characters from `string`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category String
* @param {string} [string=''] The string to trim.
* @param {string} [chars=whitespace] The characters to trim.
* @param- {Object} [guard] Enabl... |
11,729 | 206104c38fcfb40f979b5680903584ca | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14399-14416/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | LazyWrapper | function | /*------------------------------------------------------------------------*/
/**
* Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
*
* @private
* @constructor
* @param {*} value The value to wrap.
*/
function LazyWrapper(value) {
this.__wrapped__... |
11,730 | baa68d8eef25d2399e91d15f54cb5dc8 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=6488-6509/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | dataAttr | function | function dataAttr( elem, key, data ) {
var name;
// If nothing was found internally, try to fetch any
// data from the HTML5 data-* attribute
if ( data === undefined && elem.nodeType === 1 ) {
name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
data = elem.getAttribute( name );
if ( typeof data... |
11,731 | 0ae2c27a02eeb1898a83ffbe473dc2ad | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17783-17825/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | createHybrid::wrapper | function | function wrapper() {
var length = arguments.length,
args = Array(length),
index = length;
while (index--) {
args[index] = arguments[index];
}
if (isCurried) {
var placeholder = getHolder(wrapper),
holdersCount = countHolders(args... |
11,732 | 4fad5173cd359c3864dad6a6f62a8d49 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17829-17841/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | createInverter | function | /**
* Creates a function like `_.invertBy`.
*
* @private
* @param {Function} setter The function to set accumulator values.
* @param {Function} toIteratee The function to resolve iteratees.
* @returns {Function} Returns the new inverter function.
*/
function createInverter(setter,... |
11,733 | 52425a7015fcea5f3c88201ecb6fd709 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18333-18409/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | equalObjects | function | /**
* A specialized version of `baseIsEqualDeep` for objects with support for
* partial deep comparisons.
*
* @private
* @param {Object} object The object to compare.
* @param {Object} other The other object to compare.
* @param {Function} equalFunc The function to determine equivalen... |
11,734 | cb2712d669e6c71d2f56af45dd2c5514 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18857-18869/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | isKeyable | function | /**
* Checks if `value` is suitable for use as unique object key.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
*/
function isKeyable(value) {
var type = typeof value;
return (type == 'string' |... |
11,735 | 19f46425369bfa3fc4734baaf68b384f | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=23369-23417/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | spread | function | /**
* Creates a function that invokes `func` with the `this` binding of the
* create function and an array of arguments much like
* [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
*
* **Note:** This method is based on the
* [spread operator... |
11,736 | 74bb025d81d9e0bbff78d237ac9a4a89 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=23600-23633/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | cloneWith | function | /**
* This method is like `_.clone` except that it accepts `customizer` which
* is invoked to produce the cloned value. If `customizer` returns `undefined`,
* cloning is handled by the method instead. The `customizer` is invoked with
* up to four arguments; (value [, index|key, object, stack]).
... |
11,737 | 1d4f758868c8f1b7a11d16a8690af3db | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16013-16027/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | baseIsNative | function | /**
* The base implementation of `_.isNative` without bad shim checks.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a native function,
* else `false`.
*/
function baseIsNative(value) {
if (!isObject(value) || isMasked... |
11,738 | 840ffa5e26ce4a052fefb713d3015bca | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30477-30493/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | extend | function | function extend(a, b) {
for (var i in b) {
if (hasOwnProp(b, i)) {
a[i] = b[i];
}
}
if (hasOwnProp(b, 'toString')) {
a.toString = b.toString;
}
if (hasOwnProp(b, 'valueOf')) {
a.valueOf = b.valueOf;
}
... |
11,739 | 63ddc91521ce3a3f9838882cdde19036 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33260-33267/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | parseIso | function | function parseIso (inp, sign) {
// We'd normally use ~~inp for this, but unfortunately it also
// converts floats to ints.
// inp may be undefined, so careful calling replace on it.
var res = inp && parseFloat(inp.replace(',', '.'));
// apply sign while we're at it
return... |
11,740 | 687b9ebd99e738b42d9b91f0017b9f18 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31667-31670/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | getSetISOWeek | function | function getSetISOWeek (input) {
var week = weekOfYear(this, 1, 4).week;
return input == null ? week : this.add((input - week) * 7, 'd');
} |
11,741 | 33d6ed608e0b53dec51f232da84d0899 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31943-31960/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | weekdaysShortRegex | function | function weekdaysShortRegex (isStrict) {
if (this._weekdaysParseExact) {
if (!hasOwnProp(this, '_weekdaysRegex')) {
computeWeekdaysParse.call(this);
}
if (isStrict) {
return this._weekdaysShortStrictRegex;
} else {
r... |
11,742 | 8fa0677b58b2ecef58445bf6f712bab2 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=34280-34283/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | duration_add_subtract__add | function | // supports only 2.0-style add(1, 's') or add(duration)
function duration_add_subtract__add (input, value) {
return duration_add_subtract__addSubtract(this, input, value, 1);
} |
11,743 | bdc7f5eae33ef89a80dcf41c94837f6b | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=13988-13997/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | unicodeWords | function | /**
* Splits a Unicode `string` into an array of its words.
*
* @private
* @param {string} The string to inspect.
* @returns {Array} Returns the words of `string`.
*/
function unicodeWords(string) {
return string.match(reUnicodeWord) || [];
} |
11,744 | 7cd9576fbc896760ce567756f40ad59a | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15600-15610/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | baseForOwnRight | function | /**
* The base implementation of `_.forOwnRight` without support for iteratee shorthands.
*
* @private
* @param {Object} object The object to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Object} Returns `object`.
*/
function baseForOwn... |
11,745 | 290a1115c55ce63e88bf7357b02de180 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14681-14695/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | listCacheGet | function | /**
* Gets the list cache value for `key`.
*
* @private
* @name get
* @memberOf ListCache
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function listCacheGet(key) {
var data = this.__data__,
index = assocIndexOf(... |
11,746 | 04e9275458cfe1124b4bb3d5932a894c | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=8354-8388/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | computeStyleTests | function | // Executing both pixelPosition & boxSizingReliable tests require only one layout
// so they're executed at the same time to save the second computation.
function computeStyleTests() {
// This is a singleton, we need to execute it only once
if ( !div ) {
return;
}
div.style.cssText =
"box-sizing:borde... |
11,747 | b97d6a023f05fce8c4ae9f782bba7407 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16063-16085/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | baseIteratee | function | /**
* The base implementation of `_.iteratee`.
*
* @private
* @param {*} [value=_.identity] The value to convert to an iteratee.
* @returns {Function} Returns the iteratee.
*/
function baseIteratee(value) {
// Don't store the `typeof` result in a variable to avoid a JIT bug in Sa... |
11,748 | 555ebde2a9e898513b7c0e11acf49e13 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16939-16951/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | baseUpdate | function | /**
* The base implementation of `_.update`.
*
* @private
* @param {Object} object The object to modify.
* @param {Array|string} path The path of the property to update.
* @param {Function} updater The function to produce the updated value.
* @param {Function} [customizer] The functio... |
11,749 | f775768060e7a9452fbb6ea97830298c | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17144-17155/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | cloneDataView | function | /**
* Creates a clone of `dataView`.
*
* @private
* @param {Object} dataView The data view to clone.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned data view.
*/
function cloneDataView(dataView, isDeep) {
var buffer = isDeep ? cloneA... |
11,750 | 51f25453ce41ceb5f64105253ce629cf | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17557-17560/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | createBind::wrapper | function | function wrapper() {
var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
return fn.apply(isBind ? thisArg : this, arguments);
} |
11,751 | d1f7cf668bd3925813790571d65a64f7 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=19297-19314/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | toSource | function | /**
* Converts `func` to its source code.
*
* @private
* @param {Function} func The function to process.
* @returns {string} Returns the source code.
*/
function toSource(func) {
if (func != null) {
try {
return funcToString.call(func);
} catch (e) {}
... |
11,752 | 745cf1f5b26f7106fadb8fe23134f139 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33761-33764/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | getWeeksInYear | function | function getWeeksInYear () {
var weekInfo = this.localeData()._week;
return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
} |
11,753 | 442e4a65d509cffbb34b653c973a6074 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33652-33663/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | toObject | function | function toObject () {
var m = this;
return {
years: m.year(),
months: m.month(),
date: m.date(),
hours: m.hours(),
minutes: m.minutes(),
seconds: m.seconds(),
milliseconds: m.milliseconds()
};
} |
11,754 | 06243bda625bb219a785911c6cc8e3e1 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=41348-41507/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | formatNumber | function | function formatNumber (value, format, roundingFunction) {
var negP = false,
signed = false,
optDec = false,
abbr = '',
abbrK = false, // force abbreviation to thousands
abbrM = false, // force abbreviation to millions
abbrB = false, // forc... |
11,755 | 83887e9f936d955ad4cee5f5007fc00f | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=2206-2207/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | h | function | function h(b,e){var m;if(!A){var l=a.getBindingHandler(b);if(l&&l.preprocess&&!(e=l.preprocess(e,b,h)))return;if(l=k[b])m=e,0<=a.a.o(c,m)?m=!1:(l=m.match(d),m=null===l?!1:l[1]?"Object("+l[1]+")"+l[2]:m),l=m;l&&g.push("'"+b+"':function(_z){"+m+"=_z}")}p&&(e=
"function(){return "+e+" }");f.push("'"+b+"':"+e)} |
11,756 | 8a48a2e1252fdbd92773e68cdb350c80 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=13927-13938/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | stringSize | function | /**
* Gets the number of symbols in `string`.
*
* @private
* @param {string} string The string to inspect.
* @returns {number} Returns the string size.
*/
function stringSize(string) {
return hasUnicode(string)
? unicodeSize(string)
: asciiSize(string);
} |
11,757 | 376ef85fafe618dcfac8257dbff3a108 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17157-17169/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | cloneMap | function | /**
* Creates a clone of `map`.
*
* @private
* @param {Object} map The map to clone.
* @param {Function} cloneFunc The function to clone values.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned map.
*/
function cloneMap(map, isDeep, clo... |
11,758 | c0e2a5b0ae06a9d8f24870f284fcbcb3 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18642-18652/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | getWrapDetails | function | /**
* Extracts wrapper details from the `source` body comment.
*
* @private
* @param {string} source The source to inspect.
* @returns {Array} Returns the wrapper details.
*/
function getWrapDetails(source) {
var match = source.match(reWrapDetails);
return match ? match[1].... |
11,759 | 627af0124513180729d2271269d1053d | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18958-18976/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | memoizeCapped | function | /**
* A specialized version of `_.memoize` which clears the memoized function's
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
*
* @private
* @param {Function} func The function to have its output memoized.
* @returns {Function} Returns the new memoized function.
*/
function memoizeC... |
11,760 | e411aa49be536d0efa107ee81bf8a0be | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=21510-21552/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | wrapperPlant | function | /**
* Creates a clone of the chain sequence planting `value` as the wrapped value.
*
* @name plant
* @memberOf _
* @since 3.2.0
* @category Seq
* @param {*} value The value to plant.
* @returns {Object} Returns the new `lodash` wrapper instance.
* @example
*
* func... |
11,761 | c5551a092ac21fed26532bd738414955 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=22425-22467/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | some | function | /**
* Checks if `predicate` returns truthy for **any** element of `collection`.
* Iteration is stopped once `predicate` returns truthy. The predicate is
* invoked with three arguments: (value, index|key, collection).
*
* @static
* @memberOf _
* @since 0.1.0
* @category Collection... |
11,762 | 39b93400f617178d08d61f3d9d75639f | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=23040-23060/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | flip | function | /**
* Creates a function that invokes `func` with arguments reversed.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Function
* @param {Function} func The function to flip arguments for.
* @returns {Function} Returns the new flipped function.
* @example
*
* v... |
11,763 | 58432c73f9b582e09be98b56bffec58b | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=28617-28639/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | toPath | function | /**
* Converts `value` to a property path array.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Util
* @param {*} value The value to convert.
* @returns {Array} Returns the new property path array.
* @example
*
* _.toPath('a.b.c');
* // => ['a', 'b', 'c'... |
11,764 | 0479382b0e11c6ac6fd7756f89a3027d | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31261-31267/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | localeMonthsShort | function | function localeMonthsShort (m, format) {
if (!m) {
return this._monthsShort;
}
return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
} |
11,765 | 44eafc189f90aa59fe9052a45c8cbfca | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33964-33966/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | parseMs | function | function parseMs(input, array) {
array[MILLISECOND] = toInt(('0.' + input) * 1000);
} |
11,766 | fe6249b8566c54f3736e82e6ce0ef5a1 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=23930-23950/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | isBoolean | function | /**
* Checks if `value` is classified as a boolean primitive or object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
* @example
*
* _.isBo... |
11,767 | aee3dfce4bf56a69e3f617005a39eb3c | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30890-30893/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | pastFuture | function | function pastFuture (diff, output) {
var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
return isFunction(format) ? format(output) : format.replace(/%s/i, output);
} |
11,768 | 2c2d5b55d9848bee5441c3fb36025826 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30575-30585/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | valid__createInvalid | function | function valid__createInvalid (flags) {
var m = create_utc__createUTC(NaN);
if (flags != null) {
extend(getParsingFlags(m), flags);
}
else {
getParsingFlags(m).userInvalidated = true;
}
return m;
} |
11,769 | 89ac0b0314d1edd73dda1b3c2cda010e | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=38351-38361/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | generateSimpleAccessor | function | function generateSimpleAccessor(_part){
return function(v, build) {
if (v === undefined) {
return this._parts[_part] || '';
} else {
this._parts[_part] = v || null;
this.build(!build);
return this;
}
};
} |
11,770 | e09645eebee8d6d6bfae070182fad54e | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=12149-12154/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | getWindow | function | /**
* Gets a window from an element
*/
function getWindow( elem ) {
return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;
} |
11,771 | 555e42795129cc6bfa039269570e4694 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=13868-13883/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | setToPairs | function | /**
* Converts `set` to its value-value pairs.
*
* @private
* @param {Object} set The set to convert.
* @returns {Array} Returns the value-value pairs.
*/
function setToPairs(set) {
var index = -1,
result = Array(set.size);
set.forEach(function(value) {
result[++index] = [valu... |
11,772 | 5d176b061c850651da78465417594a0f | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15058-15067/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | arrayShuffle | function | /**
* A specialized version of `_.shuffle` for arrays.
*
* @private
* @param {Array} array The array to shuffle.
* @returns {Array} Returns the new shuffled array.
*/
function arrayShuffle(array) {
return shuffleSelf(copyArray(array));
} |
11,773 | 4c507b14364b19f653a3c90badbf9aa7 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=19237-19260/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | shuffleSelf | function | /**
* A specialized version of `_.shuffle` which mutates and sets the size of `array`.
*
* @private
* @param {Array} array The array to shuffle.
* @param {number} [size=array.length] The size of `array`.
* @returns {Array} Returns `array`.
*/
function shuffleSelf(array, size) {
... |
11,774 | daa917adc0cca9208f25b9f3569ea52b | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=19751-19797/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | findIndex | function | /**
* This method is like `_.find` except that it returns the index of the first
* element `predicate` returns truthy for instead of the element itself.
*
* @static
* @memberOf _
* @since 1.1.0
* @category Array
* @param {Array} array The array to inspect.
* @param {Function... |
11,775 | fdabc935d832d2a268cd645c96c889df | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=23689-23715/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | conformsTo | function | /**
* Checks if `object` conforms to `source` by invoking the predicate
* properties of `source` with the corresponding property values of `object`.
*
* **Note:** This method is equivalent to `_.conforms` when `source` is
* partially applied.
*
* @static
* @memberOf _
* @sin... |
11,776 | 57114dc4431a0d6e50e947176c594d0d | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=26369-26396/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | updateWith | function | /**
* This method is like `_.update` except that it accepts `customizer` which is
* invoked to produce the objects of `path`. If `customizer` returns `undefined`
* path creation is handled by the method instead. The `customizer` is invoked
* with three arguments: (nsValue, key, nsObject).
*
... |
11,777 | 9d286163d962e4064afaa010e859f9dc | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30963-30971/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | stringGet | function | // MOMENTS
function stringGet (units) {
units = normalizeUnits(units);
if (isFunction(this[units])) {
return this[units]();
}
return this;
} |
11,778 | 5b0996a514223bbc7ba697de2fc40cff | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=32180-32205/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | chooseLocale | function | // pick the locale from the array
// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
function chooseLocale(names) {
var i = 0, j, ... |
11,779 | f5098571ec150e22596798a67432fb31 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33674-33676/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | parsingFlags | function | function parsingFlags () {
return extend({}, getParsingFlags(this));
} |
11,780 | a9803f4bd94ba76908affcb7216db877 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=25371-25408/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | findKey | function | /**
* This method is like `_.find` except that it returns the key of the first
* element `predicate` returns truthy for instead of the element itself.
*
* @static
* @memberOf _
* @since 1.1.0
* @category Object
* @param {Object} object The object to inspect.
* @param {Functi... |
11,781 | 02bd8c1d24e0f86af24e68b5bdb92e7e | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=25888-25924/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | mapValues | function | /**
* Creates an object with the same keys as `object` and values generated
* by running each own enumerable string keyed property of `object` thru
* `iteratee`. The iteratee is invoked with three arguments:
* (value, key, object).
*
* @static
* @memberOf _
* @since 2.4.0
* ... |
11,782 | fd0c039a656542b2daac66d439201f0a | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=32176-32178/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | normalizeLocale | function | function normalizeLocale(key) {
return key ? key.toLowerCase().replace('_', '-') : key;
} |
11,783 | b70328c7c0cbcb2277bf9037f362b395 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=21001-21034/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | unzip | function | /**
* This method is like `_.zip` except that it accepts an array of grouped
* elements and creates an array regrouping the elements to their pre-zip
* configuration.
*
* @static
* @memberOf _
* @since 1.2.0
* @category Array
* @param {Array} array The array of grouped eleme... |
11,784 | 6b4dbdcb0a258f2bace410bbf64702cd | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=35215-35233/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | Twix | function | function Twix(start, end, parseFormat, options) {
var ref;
if (options == null) {
options = {};
}
if (typeof parseFormat !== 'string') {
options = parseFormat != null ? parseFormat : {};
parseFormat = null;
}
if (typeof options === 'boolean')... |
11,785 | 1693314d4613c113bb9643f952742036 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=37048-37055/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | noConflict | function | function noConflict() {
/*jshint validthis: true */
if (root.IPv6 === this) {
root.IPv6 = _IPv6;
}
return this;
} |
11,786 | 75cf3d25f943abe0875616e3e1474c1a | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=40053-40059/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | WikimetricsApi | function | function WikimetricsApi(config) {
this.root = config.wikimetricsApi.endpoint;
this.config = config;
// note that dataCoverter is a function that will need to be executed
// in the context of the metric
this.dataConverter = converterFinder(config.wikimetricsApi.format);
} |
11,787 | a408d8041c55ae0d7d87a6061e05f52d | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14519-14537/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | Hash | function | /*------------------------------------------------------------------------*/
/**
* Creates a hash object.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function Hash(entries) {
var index = -1,
length = entries ? entries.len... |
11,788 | 19cb69eee39a37ba95dfbf40f17fda67 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17877-17894/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | createOver | function | /**
* Creates a function like `_.over`.
*
* @private
* @param {Function} arrayFunc The function to iterate over iteratees.
* @returns {Function} Returns the new over function.
*/
function createOver(arrayFunc) {
return flatRest(function(iteratees) {
iteratees = arrayMap(i... |
11,789 | 5d89bac89caad0627287a83b5f242e7c | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=19869-19886/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | flattenDeep | function | /**
* Recursively flattens `array`.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Array
* @param {Array} array The array to flatten.
* @returns {Array} Returns the new flattened array.
* @example
*
* _.flattenDeep([1, [2, [3, [4]], 5]]);
* // => [1, 2, ... |
11,790 | 6a547e20a4f0cca1095a6706236a1e25 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=21426-21454/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | wrapperCommit | function | /**
* Executes the chain sequence and returns the wrapped result.
*
* @name commit
* @memberOf _
* @since 3.2.0
* @category Seq
* @returns {Object} Returns the new `lodash` wrapper instance.
* @example
*
* var array = [1, 2];
* var wrapped = _(array).push(3);
... |
11,791 | d56e60e114baa2c3493f4613f5cc42c6 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31842-31880/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | localeWeekdaysParse | function | function localeWeekdaysParse (weekdayName, format, strict) {
var i, mom, regex;
if (this._weekdaysParseExact) {
return day_of_week__handleStrictParse.call(this, weekdayName, format, strict);
}
if (!this._weekdaysParse) {
this._weekdaysParse = [];
thi... |
11,792 | 1b9732eb8caa6cf0cdff924691891351 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=32223-32243/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | locale_locales__getSetGlobalLocale | function | // This function will load locale and then set the global locale. If
// no arguments are passed in, it will simply return the current global
// locale key.
function locale_locales__getSetGlobalLocale (key, values) {
var data;
if (key) {
if (isUndefined(values)) {
... |
11,793 | 97a6f81dc3bc135468a4b5340753fe6c | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=32774-32783/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | createFromConfig | function | function createFromConfig (config) {
var res = new Moment(checkOverflow(prepareConfig(config)));
if (res._nextDay) {
// Adding is smart enough around DST
res.add(1, 'd');
res._nextDay = undefined;
}
return res;
} |
11,794 | f686752d5fe7e59df4f9aa07036e5775 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18836-18855/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | isKey | function | /**
* Checks if `value` is a property name and not a property path.
*
* @private
* @param {*} value The value to check.
* @param {Object} [object] The object to query keys on.
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
*/
function isKey(value,... |
11,795 | fe90b0cb5aacbcf2cfce65fc98d16dd9 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31760-31766/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | localeWeekdays | function | function localeWeekdays (m, format) {
if (!m) {
return this._weekdays;
}
return isArray(this._weekdays) ? this._weekdays[m.day()] :
this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];
} |
11,796 | dc7116af3413f0bbe116804e957f3aea | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33301-33317/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | createAdder | function | // TODO: remove 'name' arg after deprecation is removed
function createAdder(direction, name) {
return function (val, period) {
var dur, tmp;
//invert the arguments, but complain about it
if (period !== null && !isNaN(+period)) {
deprecateSimple(name, 'mom... |
11,797 | b4cf711cdd612867a3a6990956630815 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31385-31387/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | getDaysInMonth | function | function getDaysInMonth () {
return daysInMonth(this.year(), this.month());
} |
11,798 | 5f26e1fa832b01202afd81f7195ba8ad | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33185-33187/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | isUtc | function | function isUtc () {
return this.isValid() ? this._isUTC && this._offset === 0 : false;
} |
11,799 | 36a3e3740d561e476467294be7f3e3c4 | swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=90-104/ | 78dc516bf6d052b11eafaf957768a8b9791c566f | analytics.wikimedia.org | analytics | dashboards/reportcard/scripts.js | eachProp | function | /**
* Cycles over properties in an object and calls a function for each
* property value. If the function returns a truthy value, then the
* iteration is stopped.
*/
function eachProp(obj, func) {
var prop;
for (prop in obj) {
if (hasProp(obj, prop)) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.