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
12,100
12da98b57e92c140bd0f62aa434ac2e9
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18038-18061/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createRound
function
/** * Creates a function like `_.round`. * * @private * @param {string} methodName The name of the `Math` method to use when rounding. * @returns {Function} Returns the new round function. */ function createRound(methodName) { var func = Math[methodName]; return function(nu...
12,101
9a3a565cc42cd7c795a277e6883683f2
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=20547-20567/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
sortedLastIndex
function
/** * This method is like `_.sortedIndex` except that it returns the highest * index at which `value` should be inserted into `array` in order to * maintain its sort order. * * @static * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The sorted array to ...
12,102
51f219f44b8003189553f552923da2c3
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=67-80/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
eachReverse
function
/** * Helper function for iterating over an array backwards. If the func * returns a true value, it will break out of the loop. */ function eachReverse(ary, func) { if (ary) { var i; for (i = ary.length - 1; i > -1; i -= 1) { if (ary[i] && func(ary[i], ...
12,103
3f98e519e58ff5f98a4374f53e7a8978
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=402-496/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
newContext::makeModuleMap
function
/** * Creates a module mapping that includes plugin prefix, module * name, and path. If parentModuleMap is provided it will * also normalize the name via require.normalize() * * @param {String} name the module name * @param {String} [parentModuleMap] parent module m...
12,104
b990b3786300523e3ad272c0765bc4fe
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=1991-2002/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
getInteractiveScript
function
function getInteractiveScript() { if (interactiveScript && interactiveScript.readyState === 'interactive') { return interactiveScript; } eachReverse(scripts(), function (script) { if (script.readyState === 'interactive') { return (interactiveScript = scri...
12,105
c17bfd2c22a4477b820b106873f060fd
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=3183-3190/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
markFunction
function
/** * Mark a function for special use by Sizzle * @param {Function} fn The function to mark */ function markFunction( fn ) { fn[ expando ] = true; return fn; }
12,106
adfefcb1da8f8934b94665ac69db8ff9
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=7925-7957/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
cloneCopyEvent
function
function cloneCopyEvent( src, dest ) { var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; if ( dest.nodeType !== 1 ) { return; } // 1. Copy private data: events, handlers, etc. if ( dataPriv.hasData( src ) ) { pdataOld = dataPriv.access( src ); pdataCur = dataPriv.set( dest, pdataOld ); even...
12,107
8816bb6760d94b4c094f9c10364c62ff
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=13633-13647/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseValues
function
/** * The base implementation of `_.values` and `_.valuesIn` which creates an * array of `object` property values corresponding to the property names * of `props`. * * @private * @param {Object} object The object to query. * @param {Array} props The property names to get values for. * @returns {...
12,108
22956bd45efa33fe859e274d81905e81
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15139-15155/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseAggregator
function
/** * Aggregates elements of `collection` on `accumulator` with keys transformed * by `iteratee` and values set by `setter`. * * @private * @param {Array|Object} collection The collection to iterate over. * @param {Function} setter The function to set `accumulator` values. * @param {F...
12,109
27fd308fa5bcf278e1b23de4f21a0987
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=9028-9034/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createFxNow
function
// Animations created synchronously will run synchronously function createFxNow() { window.setTimeout( function() { fxNow = undefined; } ); return ( fxNow = jQuery.now() ); }
12,110
63f170570c8c6ba69a08bb0f2d06bf7d
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=26982-27011/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
repeat
function
/** * Repeats the given string `n` times. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to repeat. * @param {number} [n=1] The number of times to repeat the string. * @param- {Object} [guard] Enables use as an iteratee f...
12,111
e836e4847cc36e8e0c06e4998b4a9e97
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31252-31258/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
localeMonths
function
function localeMonths (m, format) { if (!m) { return this._months; } return isArray(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()]; }
12,112
42a3cb5c3cd7346d0e88aae561427912
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=32024-32028/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
hFormat
function
// FORMATTING function hFormat() { return this.hours() % 12 || 12; }
12,113
55337934ea46a4acf04749b727260edd
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=32785-32816/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
prepareConfig
function
function prepareConfig (config) { var input = config._i, format = config._f; config._locale = config._locale || locale_locales__getLocale(config._l); if (input === null || (format === undefined && input === '')) { return valid__createInvalid({nullInput: true}); ...
12,114
84b365f63205c6f79a5c32b860dd3410
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=34440-34443/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
substituteTimeAgo
function
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); }
12,115
0750519716754639f1a6cb8b68d9f54f
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=26754-26774/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
escapeRegExp
function
/** * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+", * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to escape. * @returns {string} Returns t...
12,116
cc6c0be268504fea2e2ba186936c6acc
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30974-30988/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
stringSet
function
function stringSet (units, value) { if (typeof units === 'object') { units = normalizeObjectUnits(units); var prioritized = getPrioritizedUnits(units); for (var i = 0; i < prioritized.length; i++) { this[prioritized[i].unit](units[prioritized[i].unit]); ...
12,117
83fe38ecaebe921719bb0c5e5f5d53cc
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33986-33988/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
getZoneName
function
function getZoneName () { return this._isUTC ? 'Coordinated Universal Time' : ''; }
12,118
faeffbcc2d7b715cee55f81bdba80ca0
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=19944-19964/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
head
function
/** * Gets the first element of `array`. * * @static * @memberOf _ * @since 0.1.0 * @alias first * @category Array * @param {Array} array The array to query. * @returns {*} Returns the first element of `array`. * @example * * _.head([1, 2, 3]); * // => 1 ...
12,119
70fb0e789e87cbc10a6220f8de95a2e6
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30275-30277/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
ConfigApi
function
function ConfigApi(config) { this.config = config.configApi; }
12,120
8b6189498602e1cbe77dd3360fa1116b
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15170-15190/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseAssignValue
function
/** * The base implementation of `assignValue` and `assignMergeValue` without * value checks. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function baseAssignVal...
12,121
79b491470964f74171811c9b4373de12
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15046-15056/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
arraySampleSize
function
/** * A specialized version of `_.sampleSize` for arrays. * * @private * @param {Array} array The array to sample. * @param {number} n The number of elements to sample. * @returns {Array} Returns the random elements. */ function arraySampleSize(array, n) { return shuffleSelf...
12,122
1513ea68589e2a35d8a874ac5cd37e03
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16177-16195/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseMatchesProperty
function
/** * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. * * @private * @param {string} path The path of the property to get. * @param {*} srcValue The value to match. * @returns {Function} Returns the new spec function. */ function baseMatchesProperty(...
12,123
042a52f234d01ccb519c823b0da7b9a8
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16862-16921/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseUniq
function
/** * The base implementation of `_.uniqBy` without support for iteratee shorthands. * * @private * @param {Array} array The array to inspect. * @param {Function} [iteratee] The iteratee invoked per element. * @param {Function} [comparator] The comparator invoked per element. * @retur...
12,124
084fd669fc8b68f85f4594ba0322fb61
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17674-17692/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createFind
function
/** * Creates a `_.find` or `_.findLast` function. * * @private * @param {Function} findIndexFunc The function to find the collection index. * @returns {Function} Returns the new find function. */ function createFind(findIndexFunc) { return function(collection, predicate, fromInd...
12,125
1304514e236be39ffdc5655729ecb1ce
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18456-18476/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
getFuncName
function
/** * Gets the name of `func`. * * @private * @param {Function} func The function to query. * @returns {string} Returns the function name. */ function getFuncName(func) { var result = (func.name + ''), array = realNames[result], length = hasOwnProperty.call(re...
12,126
25dbaeee84cdd3e703c4bdf53e22e28a
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=21197-21215/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
zipObject
function
/** * This method is like `_.fromPairs` except that it accepts two arrays, * one of property identifiers and one of corresponding values. * * @static * @memberOf _ * @since 0.4.0 * @category Array * @param {Array} [props=[]] The property identifiers. * @param {Array} [values...
12,127
7349a116e557bfd83f4132b868858644
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=22967-22989/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
debounce::debounced
function
function debounced() { var time = now(), isInvoking = shouldInvoke(time); lastArgs = arguments; lastThis = this; lastCallTime = time; if (isInvoking) { if (timerId === undefined) { return leadingEdge(lastCallTime); } if (max...
12,128
b2da6a9de88d4ac338badb17e4b9e87d
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30925-30927/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
addUnitPriority
function
function addUnitPriority(unit, priority) { priorities[unit] = priority; }
12,129
86bd537a9de3beae30f8d87e50d9771d
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=28749-28771/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
max
function
/** * Computes the maximum value of `array`. If `array` is empty or falsey, * `undefined` is returned. * * @static * @since 0.1.0 * @memberOf _ * @category Math * @param {Array} array The array to iterate over. * @returns {*} Returns the maximum value. * @example *...
12,130
590cbadc9fd7f6c93e8d0b0bf6b8eb58
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33012-33019/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
offsetFromString
function
function offsetFromString(matcher, string) { var matches = ((string || '').match(matcher) || []); var chunk = matches[matches.length - 1] || []; var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0]; var minutes = +(parts[1] * 60) + toInt(parts[2]); return parts[0] === ...
12,131
b7c484018f6f84970a618eb74183b569
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33702-33704/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
addWeekYearFormatToken
function
function addWeekYearFormatToken (token, getter) { addFormatToken(0, [token, token.length], 0, getter); }
12,132
8f3f71859192222bcf4573f16566ee21
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=13543-13561/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseSortBy
function
/** * The base implementation of `_.sortBy` which uses `comparer` to define the * sort order of `array` and replaces criteria objects with their corresponding * values. * * @private * @param {Array} array The array to sort. * @param {Function} comparer The function to define sort order. * @retur...
12,133
aba880cf4cfb80083c122753e720f8e0
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=22340-22368/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
sampleSize
function
/** * Gets `n` random elements at unique keys from `collection` up to the * size of `collection`. * * @static * @memberOf _ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to sample. * @param {number} [n=1] The number of elements to sa...
12,134
b704d43f501e0d22c4ede0b9e482255a
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=22955-22961/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
debounce::cancel
function
function cancel() { if (timerId !== undefined) { clearTimeout(timerId); } lastInvokeTime = 0; lastArgs = lastCallTime = lastThis = timerId = undefined; }
12,135
c43b270c43254f5e41e83bee06d29f1c
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17184-17196/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
cloneSet
function
/** * Creates a clone of `set`. * * @private * @param {Object} set The set to clone. * @param {Function} cloneFunc The function to clone values. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned set. */ function cloneSet(set, isDeep, clo...
12,136
47d243c01f2b964f00722badc8554040
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17843-17875/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createMathOperation
function
/** * Creates a function that performs a mathematical operation on two values. * * @private * @param {Function} operator The function to perform the operation. * @param {number} [defaultValue] The value used for `undefined` arguments. * @returns {Function} Returns the new mathematical oper...
12,137
c9fb85549941233560f84dbd266f2c91
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=24961-24990/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
toLength
function
/** * Converts `value` to an integer suitable for use as the length of an * array-like object. * * **Note:** This method is based on * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ * @since 4.0.0 * @category Lang ...
12,138
88c68de7bf3a0b8bf9d792abe004ecfe
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=25830-25855/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
keysIn
function
/** * Creates an array of the own and inherited enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. * * @static * @memberOf _ * @since 3.0.0 * @category Object * @param {Object} object The object to query. * @returns {Array} Re...
12,139
6b9a06bf0cb89cf8a217f7158281b258
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30337-30406/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
_convertSiteMap
function
/** * Converts the choices in languages and project in an object easily * parseable by the UI **/ function _convertSiteMap(json) { function ProjectOption(data, prettyNames) { // no need for these to be observables as they are fixed values this.code = data.name; ...
12,140
aa1977c3573c3de946a57d7fbc756bd9
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30752-30766/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
locale_set__set
function
function locale_set__set (config) { var prop, i; for (i in config) { prop = config[i]; if (isFunction(prop)) { this[i] = prop; } else { this['_' + i] = prop; } } this._config = config; // Lenient ordi...
12,141
64d20d27601c0f2cbc882147b759cc68
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=24511-24533/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isNil
function
/** * Checks if `value` is `null` or `undefined`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is nullish, else `false`. * @example * * _.isNil(null); * // => tr...
12,142
bb5155c68963985770453ac9c23caa41
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=37400-37427/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
filterArrayValues
function
function filterArrayValues(data, value) { var lookup = {}; var i, length; if (getType(value) === 'RegExp') { lookup = null; } else if (isArray(value)) { for (i = 0, length = value.length; i < length; i++) { lookup[value[i]] = true; } } else { lookup[value] = true; ...
12,143
f308e392eb81626281f7dbf09fccdad9
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=28236-28250/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
noop
function
/** * This method returns `undefined`. * * @static * @memberOf _ * @since 2.3.0 * @category Util * @example * * _.times(2, _.noop); * // => [undefined, undefined] */ function noop() { // No operation performed. }
12,144
f0db56e81b6f18e178f4c919b8c8a25c
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=25604-25629/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
functionsIn
function
/** * Creates an array of function property names from own and inherited * enumerable properties of `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The object to inspect. * @returns {Array} Returns the function names. * @se...
12,145
c0d439c3f841c678d40766fbdf67e522
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=26682-26717/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
endsWith
function
/** * Checks if `string` ends with the given target string. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to inspect. * @param {string} [target] The string to search for. * @param {number} [position=string.length] The po...
12,146
e8b62639f42523aebfbf99e88069739a
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30499-30515/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
defaultParsingFlags
function
function defaultParsingFlags() { // We need to deep clone this object. return { empty : false, unusedTokens : [], unusedInput : [], overflow : -2, charsLeftOver : 0, nullInput : false, inv...
12,147
8b64d8cc65702ccb295f14fbee2b1bb1
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33577-33619/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
startOf
function
function startOf (units) { units = normalizeUnits(units); // the following switch intentionally omits break keywords // to utilize falling through the cases. switch (units) { case 'year': this.month(0); /* falls through */ case 'qua...
12,148
6ce3a67925e2056f9599b6e27cea8ddb
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=7959-7971/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
fixInput
function
// Fix IE bugs, see support tests function fixInput( src, dest ) { var nodeName = dest.nodeName.toLowerCase(); // Fails to persist the checked state of a cloned checkbox or radio button. if ( nodeName === "input" && rcheckableType.test( src.type ) ) { dest.checked = src.checked; // Fails to return the selected ...
12,149
414a8a6c254d2555adb89bf05b2ac030
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=13335-13355/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
arraySome
function
/** * A specialized version of `_.some` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {boolean} Returns `true` if any element passes the predicate ch...
12,150
81ff9e426442d3b1963de8121806deed
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=528-551/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
newContext::onError
function
function onError(err, errback) { var ids = err.requireModules, notified = false; if (errback) { errback(err); } else { each(ids, function (id) { var mod = getOwn(registry, id); if (mod) { ...
12,151
e3e9f63cc01fe0aae6bacd3540606bb9
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=4441-4442/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
setFilters
function
// Easy API for creating new setFilters function setFilters() {}
12,152
7dce1b671c8e5e38193e96d4149dd216
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=13826-13849/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
replaceHolders
function
/** * Replaces all `placeholder` elements in `array` with an internal placeholder * and returns an array of their indexes. * * @private * @param {Array} array The array to modify. * @param {*} placeholder The placeholder to replace. * @returns {Array} Returns the new array of placeholder indexes. ...
12,153
356ecb722611b29a6d2df1f5358e87e5
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=23717-23751/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
eq
function
/** * Performs a * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * ...
12,154
68a4f3a4dde2444860da90ed9bf98aac
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16953-16974/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseWhile
function
/** * The base implementation of methods like `_.dropWhile` and `_.takeWhile` * without support for iteratee shorthands. * * @private * @param {Array} array The array to query. * @param {Function} predicate The function invoked per iteration. * @param {boolean} [isDrop] Specify droppi...
12,155
38aed9559b0c3a025aa78f636d14db06
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=25036-25062/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
toPlainObject
function
/** * Converts `value` to a plain object flattening inherited enumerable string * keyed properties of `value` to own properties of the plain object. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to convert. * @returns {Object} Returns...
12,156
2a385f1a1b04a5f6f5e42883729cda53
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=26090-26139/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
result
function
/** * This method is like `_.get` except that if the resolved value is a * function it's invoked with the `this` binding of its parent object and * its result is returned. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to quer...
12,157
b9f0e0bf7227309781222769c09f262c
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=32207-32221/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
loadLocale
function
function loadLocale(name) { var oldLocale = null; // TODO: Find a better way to register and load all the locales in Node if (!locales[name] && (typeof module !== 'undefined') && module && module.exports) { try { oldLocale = globalLocale._abbr; ...
12,158
149dbc6815503d6b12375dc827a34b93
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=36801-36818/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
toASCII
function
/** * Converts a Unicode string representing a domain name or an email address to * Punycode. Only the non-ASCII parts of the domain name will be converted, * i.e. it doesn't matter if you call it with a domain that's already in * ASCII. * @memberOf punycode * @param {String} input The domain name or email ...
12,159
5ec65b80f2d13cb271cae939fc93a683
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=23481-23498/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
unary
function
/** * Creates a function that accepts up to one argument, ignoring any * additional arguments. * * @static * @memberOf _ * @since 4.0.0 * @category Function * @param {Function} func The function to cap arguments for. * @returns {Function} Returns the new capped function. ...
12,160
47e00dde45f47853fbd89a1a92aa9d8e
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=36918-37046/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
bestPresentation
function
function bestPresentation(address) { // based on: // Javascript to test an IPv6 address for proper format, and to // present the "best text representation" according to IETF Draft RFC at // http://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-04 // 8 Feb 2010 Rich Brown, Dartware, LLC...
12,161
56b55a89b72739030859781bb329ca12
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=40827-40837/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
AQSApi
function
function AQSApi(config) { this.config = config; // Note that dataConverters are functions that will need // to be executed in the context of the metric. this.dataConverters = _.mapValues(config.aqsApi, function (apiConfig) { return converterFinder( 'aqs-api-re...
12,162
d4e52c84dcea4cfd48c0016492a47120
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=24215-24243/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isInteger
function
/** * Checks if `value` is an integer. * * **Note:** This method is based on * [`Number.isInteger`](https://mdn.io/Number/isInteger). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true...
12,163
578ea0932d10774f3359feceb1455cd9
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=9242-9277/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
propFilter
function
function propFilter( props, specialEasing ) { var index, name, easing, value, hooks; // camelCase, specialEasing and expand cssHook pass for ( index in props ) { name = jQuery.camelCase( index ); easing = specialEasing[ name ]; value = props[ index ]; if ( jQuery.isArray( value ) ) { easing = value[ 1 ];...
12,164
a34c07719da4554f263f54a0591aa566
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14909-14919/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
stackClear
function
/** * Removes all key-value entries from the stack. * * @private * @name clear * @memberOf Stack */ function stackClear() { this.__data__ = new ListCache; this.size = 0; }
12,165
8cdba4cd1397448d1d10bc1cea1e932b
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=2153-2154/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
W
function
function W(a, c){c&&c!==I?"beforeChange"===c?this.Kb(a):this.Ha(a,c):this.Lb(a)}
12,166
7002041f93b8e31f55a1db1a7a32dd93
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17637-17672/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createCurry
function
/** * Creates a function that wraps `func` to enable currying. * * @private * @param {Function} func The function to wrap. * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {number} arity The arity of `func`. * @returns {Function} Returns the new...
12,167
52c5cb0c13ed2725642434cb4030ecf3
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18094-18173/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createWrap
function
/** * Creates a function that either curries or invokes `func` with optional * `this` binding and partially applied arguments. * * @private * @param {Function|string} func The function or method name to wrap. * @param {number} bitmask The bitmask flags. * The bitmask may be composed ...
12,168
87140f48ccd316434aba13c0b2cfc328
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18522-18540/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
getMatchData
function
/** * Gets the property names, values, and compare flags of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the match data of `object`. */ function getMatchData(object) { var result = keys(object), length = result.length; ...
12,169
d5cb29be774aadcc9faf34e7b8b23dd1
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=19133-19153/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
reorder
function
/** * Reorder `array` according to the specified indexes where the element at * the first index is assigned as the first element, the element at * the second index is assigned as the second element, and so on. * * @private * @param {Array} array The array to reorder. * @param {Array} ...
12,170
704aa7cab770db2a488514866e7a1365
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=20975-20999/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
uniqWith
function
/** * This method is like `_.uniq` except that it accepts `comparator` which * is invoked to compare elements of `array`. The order of result values is * determined by the order they occur in the array.The comparator is invoked * with two arguments: (arrVal, othVal). * * @static * @me...
12,171
1af383c42c9f84ae6c68a93c8248efd9
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=24676-24696/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isString
function
/** * Checks if `value` is classified as a `String` primitive or object. * * @static * @since 0.1.0 * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a string, else `false`. * @example * * _.isSt...
12,172
eeeb84fbb18ed274b71ec1abe2203a10
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33766-33777/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
getSetWeekYearHelper
function
function getSetWeekYearHelper(input, week, weekday, dow, doy) { var weeksTarget; if (input == null) { return weekOfYear(this, dow, doy).year; } else { weeksTarget = weeksInYear(input, dow, doy); if (week > weeksTarget) { week = weeksTarget; ...
12,173
6a176f8436de1ad8fea0ab260d2aff8e
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=35872-35874/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isGraph
function
function isGraph(g) { return g && g.id && g.title; }
12,174
156dd2aa3b25387474da5d3da211f31c
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33048-33093/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
getSetOffset
function
// MOMENTS // keepLocalTime = true means only change the timezone, without // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]--> // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset // +0200, so we adjust the time as needed, to be valid. // // Keeping the tim...
12,175
5cc7a59f2a9c26291a4dfbdcb7bdfeb9
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33980-33984/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
getZoneAbbr
function
// MOMENTS function getZoneAbbr () { return this._isUTC ? 'UTC' : ''; }
12,176
dac3595101ccbdde0555359e487b6419
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=13605-13618/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseToPairs
function
/** * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array * of key-value pairs for `object` corresponding to the property names of `props`. * * @private * @param {Object} object The object to query. * @param {Array} props The property names to get values for. * @returns ...
12,177
25114560cd174d9a01bd4acf88037da4
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=147-158/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
getGlobal
function
//Allow getting a global that is expressed in //dot notation, like 'a.b.c'. function getGlobal(value) { if (!value) { return value; } var g = global; each(value.split('.'), function (part) { g = g[part]; }); return g; }
12,178
344dda6dbd961140c2b5aa97a0f11085
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=25064-25090/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
toSafeInteger
function
/** * Converts `value` to a safe integer. A safe integer can be compared and * represented correctly. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {number} Returns the converted integer. * @example * ...
12,179
3c8daa8644ddacee45ef6ebaf27b4f96
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=25547-25575/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
forOwnRight
function
/** * This method is like `_.forOwn` except that it iterates over properties of * `object` in the opposite order. * * @static * @memberOf _ * @since 2.0.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} [iteratee=_.identity] The fu...
12,180
8e2a990a423128f0cff2c2e98198eeee
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=26640-26657/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
capitalize
function
/** * Converts the first character of `string` to upper case and the remaining * to lower case. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to capitalize. * @returns {string} Returns the capitalized string. * @exa...
12,181
099ab6094c1bf848a37b884199a1d9d3
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=27371-27394/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
toLower
function
/** * Converts `string`, as a whole, to lower case just like * [String#toLowerCase](https://mdn.io/toLowerCase). * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the lower cased strin...
12,182
6da040cb3144ee3f994e8138d81e69b6
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30461-30463/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isDate
function
function isDate(input) { return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]'; }
12,183
c47b8413c7333d3052cde7ff0e1412c5
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31136-31138/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
regexEscape
function
function regexEscape(s) { return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); }
12,184
8c3d25f65ddb291015e2b55ab18f1496
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33095-33107/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
getSetZone
function
function getSetZone (input, keepLocalTime) { if (input != null) { if (typeof input !== 'string') { input = -input; } this.utcOffset(input, keepLocalTime); return this; } else { return -this.utcOffset(); } }
12,185
0fd3ecce0d0e383d1204982054016689
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=25577-25602/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
functions
function
/** * Creates an array of function property names from own enumerable properties * of `object`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to inspect. * @returns {Array} Returns the function names. * @see _.functionsI...
12,186
720c028811fc55a0929b344ef7c3f75f
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=37480-37483/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
trimSlashes
function
function trimSlashes(text) { var trim_expression = /^\/+|\/+$/g; return text.replace(trim_expression, ''); }
12,187
389bac726c4b584ade18c94a54d43fa4
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=40982-40986/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
DatasetsApi
function
function DatasetsApi(config) { this.root = config.datasetsApi.endpoint; this.config = config.datasetsApi; this.dataConverter = converterFinder(config.datasetsApi.format); }
12,188
5beda9e63e8f4cdff4cc1d1037b198cb
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=13586-13603/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseTimes
function
/** * The base implementation of `_.times` without support for iteratee shorthands * or max array length checks. * * @private * @param {number} n The number of times to invoke `iteratee`. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the array of result...
12,189
e352b846d90d5ee2d37f6b7007e85d4d
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16087-16105/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseKeys
function
/** * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeys(object) { if (!isPrototype(object)) { return nativ...
12,190
c8e3fa5667ac7ff5d749c5771abdb062
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17021-17041/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseZipObject
function
/** * This base implementation of `_.zipObject` which assigns values using `assignFunc`. * * @private * @param {Array} props The property identifiers. * @param {Array} values The property values. * @param {Function} assignFunc The function to assign values. * @returns {Object} Returns...
12,191
c03d6cb9fdcf7a6eafacc1d34ffca53a
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=19208-19235/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
shortOut
function
/** * Creates a function that'll short out and invoke `identity` instead * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` * milliseconds. * * @private * @param {Function} func The function to restrict. * @returns {Function} Returns the new shortable function. ...
12,192
e34c435101eb634c9c505894e2540f46
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=22282-22319/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
reject
function
/** * The opposite of `_.filter`; this method returns the elements of `collection` * that `predicate` does **not** return truthy for. * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {...
12,193
a6ab1aa5ce8b9a473f4bae5eaa5b955f
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=23657-23687/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
cloneDeepWith
function
/** * This method is like `_.cloneWith` except that it recursively clones `value`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to recursively clone. * @param {Function} [customizer] The function to customize cloning. * @returns {*} ...
12,194
1bca95708b5dc0b7889317f5067f04c5
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=24011-24063/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isEmpty
function
/** * Checks if `value` is an empty object, collection, map, or set. * * Objects are considered empty if they have no own enumerable string keyed * properties. * * Array-like values such as `arguments` objects, arrays, buffers, strings, or * jQuery-like collections are considered empt...
12,195
b459b1884eb89ce43cd726d718ded548
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=26141-26171/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
set
function
/** * Sets the value at `path` of `object`. If a portion of `path` doesn't exist, * it's created. Arrays are created for missing index properties while objects * are created for all other missing properties. Use `_.setWith` to customize * `path` creation. * * **Note:** This method mutates ...
12,196
3f16e3dcaff86f93fddf3946c525c0b8
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30446-30450/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isObject
function
function isObject(input) { // IE8 will treat undefined and null as object if it wasn't for // input != null return input != null && Object.prototype.toString.call(input) === '[object Object]'; }
12,197
bacf14ea59b32866f62ee22f0494c858
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31310-31346/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
localeMonthsParse
function
function localeMonthsParse (monthName, format, strict) { var i, mom, regex; if (this._monthsParseExact) { return units_month__handleStrictParse.call(this, monthName, format, strict); } if (!this._monthsParse) { this._monthsParse = []; this._longMonth...
12,198
58d85b78974c3fdbf7976cce90244d70
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=34408-34411/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
duration_get__get
function
function duration_get__get (units) { units = normalizeUnits(units); return this[units + 's'](); }
12,199
196faf0c698f8365c036cd54e898451a
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=32479-32488/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
defaults
function
// Pick the first defined of two or three arguments. function defaults(a, b, c) { if (a != null) { return a; } if (b != null) { return b; } return c; }