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,200
6a5731931f1a532cf3700a65f7bbc0b8
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14997-15032/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
arrayLikeKeys
function
/*------------------------------------------------------------------------*/ /** * Creates an array of the enumerable property names of the array-like `value`. * * @private * @param {*} value The value to query. * @param {boolean} inherited Specify returning inherited property names. ...
12,201
aad96f8b4f3b37ff34309eab2ff0db17
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16390-16401/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
basePropertyDeep
function
/** * A specialized version of `baseProperty` which supports deep paths. * * @private * @param {Array|string} path The path of the property to get. * @returns {Function} Returns the new accessor function. */ function basePropertyDeep(path) { return function(object) { retu...
12,202
18746b8e0e23e0a0a1d5e35e2b7e4165
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16477-16488/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseRandom
function
/** * The base implementation of `_.random` without support for returning * floating-point numbers. * * @private * @param {number} lower The lower bound. * @param {number} upper The upper bound. * @returns {number} Returns the random number. */ function baseRandom(lower, uppe...
12,203
508f3c19feadd3246d15cb5c186b741a
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16740-16791/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseSortedIndexBy
function
/** * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy` * which invokes `iteratee` for `value` and each element of `array` to compute * their sort ranking. The iteratee is invoked with one argument; (value). * * @private * @param {Array} array The sorted array to inspe...
12,204
c8cda77f593c423973f05515e81819a7
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17896-17916/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createPadding
function
/** * Creates the padding for `string` based on `length`. The `chars` string * is truncated if the number of characters exceeds `length`. * * @private * @param {number} length The padding length. * @param {string} [chars=' '] The string used as padding. * @returns {string} Returns the...
12,205
7ce371d628464e5d9c0dbde708036e36
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17918-17951/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createPartial
function
/** * Creates a function that wraps `func` to invoke it with the `this` binding * of `thisArg` and `partials` prepended to the arguments it receives. * * @private * @param {Function} func The function to wrap. * @param {number} bitmask The bitmask flags. See `createWrap` for more details. ...
12,206
0e722ac4ee57b9206661face2c61480d
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=19049-19070/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
mergeDefaults
function
/** * Used by `_.defaultsDeep` to customize its `_.merge` use. * * @private * @param {*} objValue The destination value. * @param {*} srcValue The source value. * @param {string} key The key of the property to merge. * @param {Object} object The parent object of `objValue`. * @pa...
12,207
1b127e684bd1dd55ccbbf706638feb29
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=21456-21486/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
wrapperNext
function
/** * Gets the next value on a wrapped object following the * [iterator protocol](https://mdn.io/iteration_protocols#iterator). * * @name next * @memberOf _ * @since 4.0.0 * @category Seq * @returns {Object} Returns the next iterator value. * @example * * var wrapp...
12,208
20661321504c66835fb40f48258777dd
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=22571-22592/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
ary
function
/** * Creates a function that invokes `func`, with up to `n` arguments, * ignoring any additional arguments. * * @static * @memberOf _ * @since 3.0.0 * @category Function * @param {Function} func The function to cap arguments for. * @param {number} [n=func.length] The arity ...
12,209
6211d7f30570955cb0f30d16c5f37f0f
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=28524-28544/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
stubObject
function
/** * This method returns a new empty object. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {Object} Returns the new empty object. * @example * * var objects = _.times(2, _.stubObject); * * console.log(objects); * // => [{}, {}] ...
12,210
07e39ce47fd730e563efc4172f3ec812
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=21848-21873/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
flatMapDepth
function
/** * This method is like `_.flatMap` except that it recursively flattens the * mapped results up to `depth` times. * * @static * @memberOf _ * @since 4.7.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [iterate...
12,211
29652af86eb5f86c2e53fab936759c94
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=23635-23655/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
cloneDeep
function
/** * This method is like `_.clone` except that it recursively clones `value`. * * @static * @memberOf _ * @since 1.0.0 * @category Lang * @param {*} value The value to recursively clone. * @returns {*} Returns the deep cloned value. * @see _.clone * @example * ...
12,212
f4e18fe988e9932dba53f5a08ad52468
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=24353-24383/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isMatch
function
/** * Performs a partial deep comparison between `object` and `source` to * determine if `object` contains equivalent property values. * * **Note:** This method is equivalent to `_.matches` when `source` is * partially applied. * * Partial comparisons will match empty array and empty ...
12,213
207f08fec77cd6d13c08a2cc3144b864
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18704-18715/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
initCloneObject
function
/** * Initializes an object clone. * * @private * @param {Object} object The object to clone. * @returns {Object} Returns the initialized clone. */ function initCloneObject(object) { return (typeof object.constructor == 'function' && !isPrototype(object)) ? baseCreate(get...
12,214
e622272b2d5c2c288749677b3ad29e51
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=26398-26426/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
values
function
/** * Creates an array of the own enumerable string keyed property values of `object`. * * **Note:** Non-object values are coerced to objects. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Re...
12,215
72aef7560191fe75d1eaeaa194743c82
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=28641-28661/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
uniqueId
function
/** * Generates a unique ID. If `prefix` is given, the ID is appended to it. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {string} [prefix=''] The value to prefix the ID with. * @returns {string} Returns the unique ID. * @example * * _.uniqueI...
12,216
f92493412bb00261be3812e5504d8faa
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=6801-6861/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
adjustCSS
function
function adjustCSS( elem, prop, valueParts, tween ) { var adjusted, scale = 1, maxIterations = 20, currentValue = tween ? function() { return tween.cur(); } : function() { return jQuery.css( elem, prop, "" ); }, initial = currentValue(), unit = valueParts && valueParts[ 3 ] || ( jQuery.cs...
12,217
cf816eb8742243ff31c64beaedb1ead8
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=13071-13083/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
addSetEntry
function
/** * Adds `value` to `set`. * * @private * @param {Object} set The set to modify. * @param {*} value The value to add. * @returns {Object} Returns `set`. */ function addSetEntry(set, value) { // Don't return `set.add` because it's not chainable in IE 11. set.add(value); return set; ...
12,218
d721a586e773c0ef995ab774a8e155c2
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14292-14292/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
object
function
function object() {}
12,219
1cc2595030f26ad16a978b02dcaa67a1
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15825-15834/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseIsArguments
function
/** * The base implementation of `_.isArguments`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, */ function baseIsArguments(value) { return isObjectLike(value) && objectToString.call(value) == argsTag;...
12,220
69f72013d3e010db116eab4cfe647b89
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=20116-20133/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
join
function
/** * Converts all elements in `array` into a string separated by `separator`. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to convert. * @param {string} [separator=','] The element separator. * @returns {string} Returns the joi...
12,221
f925e8339fa5645df39e2e5b9eee2752
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=23419-23479/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
throttle
function
/** * Creates a throttled function that only invokes `func` at most once per * every `wait` milliseconds. The throttled function comes with a `cancel` * method to cancel delayed `func` invocations and a `flush` method to * immediately invoke them. Provide `options` to indicate whether `func` * ...
12,222
9203d35d0e15e7639a84f762458b21b7
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=27977-28021/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
iteratee
function
/** * Creates a function that invokes `func` with the arguments of the created * function. If `func` is a property name, the created function returns the * property value for a given element. If `func` is an array or object, the * created function returns `true` for elements that contain the equival...
12,223
d6fc1946490fec68f387bbc4ca5f8165
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=28773-28800/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
maxBy
function
/** * This method is like `_.max` except that it accepts `iteratee` which is * invoked for each element in `array` to generate the criterion by which * the value is ranked. The iteratee is invoked with one argument: (value). * * @static * @memberOf _ * @since 4.0.0 * @category Ma...
12,224
3214dcc3524acb9db9a7ccb829199f26
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=28820-28845/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
meanBy
function
/** * This method is like `_.mean` except that it accepts `iteratee` which is * invoked for each element in `array` to generate the value to be averaged. * The iteratee is invoked with one argument: (value). * * @static * @memberOf _ * @since 4.7.0 * @category Math * @param ...
12,225
ea7d297392244a5fec326182ffa9149f
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=23570-23598/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
clone
function
/** * Creates a shallow clone of `value`. * * **Note:** This method is loosely based on the * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm) * and supports cloning arrays, array buffers, booleans, date objects, maps, * numbers, `Object` objects, regexes, sets, stri...
12,226
880b43cb6da089cd8f3a25fc14ed4ab6
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33517-33525/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
from
function
function from (time, withoutSuffix) { if (this.isValid() && ((isMoment(time) && time.isValid()) || local__createLocal(time).isValid())) { return create__createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix); } else { ...
12,227
b8328dad9a6b6e1d575231c7a16db900
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=22906-22913/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
debounce::leadingEdge
function
function leadingEdge(time) { // Reset any `maxWait` timer. lastInvokeTime = time; // Start the timer for the trailing edge. timerId = setTimeout(timerExpired, wait); // Invoke the leading edge. return leading ? invokeFunc(time) : result; }
12,228
29cd969efa5f1989c0c16a1dfb73834d
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=2153-2153/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
U
function
function U(b,c){var d;return function(){d||(d=a.a.setTimeout(function(){d=n;b()},c))}}
12,229
ef9db5226c6f09a39ba142538f963ea4
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=2346-2353/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
DOMEval
function
function DOMEval( code, doc ) { doc = doc || document; var script = doc.createElement( "script" ); script.text = code; doc.head.appendChild( script ).parentNode.removeChild( script ); }
12,230
73187c40ef122ccc5e320647646f8a98
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17198-17207/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
cloneSymbol
function
/** * Creates a clone of the `symbol` object. * * @private * @param {Object} symbol The symbol object to clone. * @returns {Object} Returns the cloned symbol object. */ function cloneSymbol(symbol) { return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; }
12,231
5e036f3de937915168c7fd15c4cbcbf1
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17591-17602/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createCompounder
function
/** * Creates a function like `_.camelCase`. * * @private * @param {Function} callback The function to combine each word. * @returns {Function} Returns the new compounder function. */ function createCompounder(callback) { return function(string) { return arrayReduce(words...
12,232
cc6b34cc576526ecd502ff01b274f44c
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=22923-22932/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
debounce::shouldInvoke
function
function shouldInvoke(time) { var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime; // Either this is the first call, activity has stopped and we're at the // trailing edge, the system time has gone backwards and we're treating // it as th...
12,233
0b1962afaa1f8e1d965c65dc911caab3
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=26428-26454/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
valuesIn
function
/** * Creates an array of the own and inherited enumerable string keyed property * values 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. ...
12,234
9585204f7355b3ce1238ffa73c76da13
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=26844-26881/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
pad
function
/** * Pads `string` on the left and right sides if it's shorter than `length`. * Padding characters are truncated if they can't be evenly divided by `length`. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to pad. * @para...
12,235
4e2a9237c6ba7ffc583d194755df6a85
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=27013-27037/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
replace
function
/** * Replaces matches for `pattern` in `string` with `replacement`. * * **Note:** This method is based on * [`String#replace`](https://mdn.io/String/replace). * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to modify...
12,236
7fb1a2d73e28cd47a240abbb337938d7
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=19425-19460/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
concat
function
/** * Creates a new array concatenating `array` with any additional arrays * and/or values. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to concatenate. * @param {...*} [values] The values to concatenate. * @returns {Array}...
12,237
fc275d23de8198777daa28c13da3c573
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30495-30497/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
create_utc__createUTC
function
function create_utc__createUTC (input, format, locale, strict) { return createLocalOrUTC(input, format, locale, strict, true).utc(); }
12,238
926ed2025d9ae3bb1bf94871ced02f90
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=32818-32839/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
configFromInput
function
function configFromInput(config) { var input = config._i; if (input === undefined) { config._d = new Date(utils_hooks__hooks.now()); } else if (isDate(input)) { config._d = new Date(input.valueOf()); } else if (typeof input === 'string') { configFromSt...
12,239
460d70895a6cc9b4e80ae731880242f3
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=19850-19867/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
flatten
function
/** * Flattens `array` a single level deep. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to flatten. * @returns {Array} Returns the new flattened array. * @example * * _.flatten([1, [2, [3, [4]], 5]]); * // => [1,...
12,240
a1b118f0b5aa9e93c6e8f5179f19bdaa
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=24992-25034/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
toNumber
function
/** * Converts `value` to a number. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to process. * @returns {number} Returns the number. * @example * * _.toNumber(3.2); * // => 3.2 * * _.toNumber(Number.MIN_VALUE...
12,241
88ff2c0a07e87325fb74584e7bf35f27
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=160-176/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
makeError
function
/** * Constructs an error with a pointer to an URL with more information. * @param {String} id the error ID that maps to an ID on a web page. * @param {String} message human readable error. * @param {Error} [err] the original error, if there is one. * * @returns {Error} */ functio...
12,242
cdc17227b64d3a261c15e18d432864f4
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14585-14597/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
hashHas
function
/** * Checks if a hash value for `key` exists. * * @private * @name has * @memberOf Hash * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function hashHas(key) { var data = this.__dat...
12,243
dc5e86db6f6b73d1cda8a5cffa20e95e
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14697-14708/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
listCacheHas
function
/** * Checks if a list cache value for `key` exists. * * @private * @name has * @memberOf ListCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas(key) { retur...
12,244
7470fed4966374b5340bc28684437f4d
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16923-16937/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseUnset
function
/** * The base implementation of `_.unset`. * * @private * @param {Object} object The object to modify. * @param {Array|string} path The path of the property to unset. * @returns {boolean} Returns `true` if the property is deleted, else `false`. */ function baseUnset(object, path)...
12,245
2b22091834a8eb0f60de5d0878bb95d8
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=18893-18902/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isMasked
function
/** * Checks if `func` has its source masked. * * @private * @param {Function} func The function to check. * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ function isMasked(func) { return !!maskSrcKey && (maskSrcKey in func); }
12,246
03b44ecdba3169978ace883c26dc1e55
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=22126-22167/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
orderBy
function
/** * This method is like `_.sortBy` except that it allows specifying the sort * orders of the iteratees to sort by. If `orders` is unspecified, all values * are sorted in ascending order. Otherwise, specify an order of "desc" for * descending or "asc" for ascending sort order of corresponding value...
12,247
a79c61ce5ebca2eedb7807851884d15b
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=24161-24189/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isFinite
function
/** * Checks if `value` is a finite primitive number. * * **Note:** This method is based on * [`Number.isFinite`](https://mdn.io/Number/isFinite). * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} ...
12,248
e93daafe69541ec55c8d5806a471c81a
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=25449-25481/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
forIn
function
/** * Iterates over own and inherited enumerable string keyed properties of an * object and invokes `iteratee` for each property. The iteratee is invoked * with three arguments: (value, key, object). Iteratee functions may exit * iteration early by explicitly returning `false`. * * @static...
12,249
38a7e77506fce1dfabfdb45c5932e578
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30902-30904/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
normalizeUnits
function
function normalizeUnits(units) { return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined; }
12,250
9487b0f723925770bdd762e792f8d095
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30940-30950/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
makeGetSet
function
function makeGetSet (unit, keepTime) { return function (value) { if (value != null) { get_set__set(this, unit, value); utils_hooks__hooks.updateOffset(this, keepTime); return this; } else { return get_set__get(this, unit); ...
12,251
523499b4ee7255083f4149ec53a1b6a7
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=34151-34169/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
listMonthsImpl
function
function listMonthsImpl (format, index, field) { if (typeof format === 'number') { index = format; format = undefined; } format = format || ''; if (index != null) { return lists__get(format, index, field, 'month'); } var i; v...
12,252
3cb522dd24af07c16ec2d21b07257f46
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=20798-20838/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
takeWhile
function
/** * Creates a slice of `array` with elements taken from the beginning. Elements * are taken until `predicate` returns falsey. The predicate is invoked with * three arguments: (value, index, array). * * @static * @memberOf _ * @since 3.0.0 * @category Array * @param {Array}...
12,253
c9408276f4c1e5c05a1e382e5fb7a6d5
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14895-14907/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
Stack
function
/*------------------------------------------------------------------------*/ /** * Creates a stack cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Stack(entries) { var data = this.__data_...
12,254
8f216b00cce05870f1ccaaf79f95f35e
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15588-15598/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseForOwn
function
/** * The base implementation of `_.forOwn` 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(obje...
12,255
262059b282fcec2ddfce2d992723e6ab
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=7014-7026/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
setGlobalEval
function
// Mark scripts as having already been evaluated function setGlobalEval( elems, refElements ) { var i = 0, l = elems.length; for ( ; i < l; i++ ) { dataPriv.set( elems[ i ], "globalEval", !refElements || dataPriv.get( refElements[ i ], "globalEval" ) ); } }
12,256
33fdcaf0e335af9aa3306fcf8295d30b
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=13448-13468/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseIndexOfWith
function
/** * This function is like `baseIndexOf` except that it accepts a comparator. * * @private * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} fromIndex The index to search from. * @param {Function} comparator The comparator invoked per elemen...
12,257
9123b39b99567e6b900dc8d479fbc4cf
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15663-15672/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseGetTag
function
/** * The base implementation of `getTag`. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ function baseGetTag(value) { return objectToString.call(value); }
12,258
d125be43d2381b306e51cd724b188435
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=20001-20018/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
initial
function
/** * Gets all but the last element of `array`. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to query. * @returns {Array} Returns the slice of `array`. * @example * * _.initial([1, 2, 3]); * // => [1, 2] */ ...
12,259
42bca9abb7b6309c001437b90c72d708
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=22943-22953/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
debounce::trailingEdge
function
function trailingEdge(time) { timerId = undefined; // Only invoke if we have `lastArgs` which means `func` has been // debounced at least once. if (trailing && lastArgs) { return invokeFunc(time); } lastArgs = lastThis = undefined; return result; ...
12,260
a4e18aa96d327b9582c295a3b536ad1b
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=23129-23163/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
negate
function
/** * Creates a function that negates the result of the predicate `func`. The * `func` predicate is invoked with the `this` binding and arguments of the * created function. * * @static * @memberOf _ * @since 3.0.0 * @category Function * @param {Function} predicate The predic...
12,261
5b39d6640d349b31f837798b0844cbb8
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=27396-27419/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
toUpper
function
/** * Converts `string`, as a whole, to upper case just like * [String#toUpperCase](https://mdn.io/toUpperCase). * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the upper cased strin...
12,262
77b6d5ba05c72a600ddd409122c2716f
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=20410-20435/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
reverse
function
/** * Reverses `array` so that the first element becomes the last, the second * element becomes the second to last, and so on. * * **Note:** This method mutates `array` and is based on * [`Array#reverse`](https://mdn.io/Array/reverse). * * @static * @memberOf _ * @since 4.0....
12,263
f075b0cbf5ed86485a1559a987748653
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=30703-30731/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
deprecate
function
function deprecate(msg, fn) { var firstTime = true; return extend(function () { if (utils_hooks__hooks.deprecationHandler != null) { utils_hooks__hooks.deprecationHandler(null, msg); } if (firstTime) { var args = []; va...
12,264
284862cc682b6988be5e2e177b871a18
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14316-14329/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
LodashWrapper
function
/** * The base constructor for creating `lodash` wrapper objects. * * @private * @param {*} value The value to wrap. * @param {boolean} [chainAll] Enable explicit method chain sequences. */ function LodashWrapper(value, chainAll) { this.__wrapped__ = value; this.__actions__...
12,265
a54666b92237f46fa8cccd00384d3d70
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15157-15168/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseAssign
function
/** * The base implementation of `_.assign` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssign...
12,266
00eda9b8f702c3e5a878c9db51a319da
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=6191-6196/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
completed
function
// The ready event handler and self cleanup method function completed() { document.removeEventListener( "DOMContentLoaded", completed ); window.removeEventListener( "load", completed ); jQuery.ready(); }
12,267
44a3fb90e015b9787e92d1e4d838d4cd
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=7913-7923/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
restoreScript
function
function restoreScript( elem ) { var match = rscriptTypeMasked.exec( elem.type ); if ( match ) { elem.type = match[ 1 ]; } else { elem.removeAttribute( "type" ); } return elem; }
12,268
f8bb6947332a823d187122e291e03616
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14878-14889/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
setCacheHas
function
/** * Checks if `value` is in the array cache. * * @private * @name has * @memberOf SetCache * @param {*} value The value to search for. * @returns {number} Returns `true` if `value` is found, else `false`. */ function setCacheHas(value) { return this.__data__.has(value...
12,269
ec66fd2f1c70d35b771e5a0f51da55d0
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=14437-14455/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
lazyReverse
function
/** * Reverses the direction of lazy iteration. * * @private * @name reverse * @memberOf LazyWrapper * @returns {Object} Returns the new reversed `LazyWrapper` object. */ function lazyReverse() { if (this.__filtered__) { var result = new LazyWrapper(this); re...
12,270
af0ad2880648ea90691ba1de51f21cf2
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17112-17129/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
cloneBuffer
function
/** * Creates a clone of `buffer`. * * @private * @param {Buffer} buffer The buffer to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Buffer} Returns the cloned buffer. */ function cloneBuffer(buffer, isDeep) { if (isDeep) { return buffer.slice...
12,271
01ca9ee0b2be922677177f14e56540cd
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17953-17976/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createRange
function
/** * Creates a `_.range` or `_.rangeRight` function. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the new range function. */ function createRange(fromRight) { return function(start, end, step) { if (step ...
12,272
00a47c2d2a6b754e7352ffeec77ed273
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=31006-31030/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
addFormatToken
function
// token: 'M' // padded: ['MM', 2] // ordinal: 'Mo' // callback: function () { this.month() + 1 } function addFormatToken (token, padded, ordinal, callback) { var func = callback; if (typeof callback === 'string') { func = function () { return this[callb...
12,273
88877b81ff872273999126e460796a1e
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=32865-32867/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
local__createLocal
function
function local__createLocal (input, format, locale, strict) { return createLocalOrUTC(input, format, locale, strict, false); }
12,274
0428b64beeab19b410ae5ce11734bbd2
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33374-33385/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isAfter
function
function isAfter (input, units) { var localInput = isMoment(input) ? input : local__createLocal(input); if (!(this.isValid() && localInput.isValid())) { return false; } units = normalizeUnits(!isUndefined(units) ? units : 'millisecond'); if (units === 'millisecond') {...
12,275
426819ac6a8dd062a8b440dce03d7edb
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33531-33539/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
to
function
function to (time, withoutSuffix) { if (this.isValid() && ((isMoment(time) && time.isValid()) || local__createLocal(time).isValid())) { return create__createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix); } else { ...
12,276
a6bd2c97ce10c9bbb2c5a4c9788dd7a2
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=34471-34481/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
duration_humanize__getSetRelativeTimeRounding
function
// This function allows you to set the rounding function for relative time strings function duration_humanize__getSetRelativeTimeRounding (roundingFunction) { if (roundingFunction === undefined) { return round; } if (typeof(roundingFunction) === 'function') { round = ...
12,277
68b5009260e5bbdd074b5e272e1b8e7d
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=228-258/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
newContext::trimDots
function
/** * Trims the . and .. from an array of path segments. * It will keep a leading path segment if a .. will become * the first path segment, to help with module name lookups, * which act like paths, but can be remapped. But the end result, * all paths that use this function ...
12,278
96c7929f4e0a63cc4c38c85c02381387
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=3163-3181/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createCache
function
/** * Create key-value caches of limited size * @returns {function(string, object)} Returns the Object data after storing it on itself with * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) * deleting the oldest entry */ function createCache() { var keys = []; functi...
12,279
92b214abe05985ca790a62f882a95360
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15699-15709/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseHasIn
function
/** * The base implementation of `_.hasIn` 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 baseHasIn(object, ke...
12,280
11a685245793cea14979ef42e3de02bb
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15805-15823/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseInvoke
function
/** * The base implementation of `_.invoke` without support for individual * method arguments. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path of the method to invoke. * @param {Array} args The arguments to invoke the method with. ...
12,281
aed65673fdcb9c86b2b9e1c7bcc9fdcc
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17301-17334/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
composeArgs
function
/** * Creates an array that is the composition of partially applied arguments, * placeholders, and provided arguments into a single array of arguments. * * @private * @param {Array} args The provided arguments. * @param {Array} partials The arguments to prepend to those provided. * @p...
12,282
50b637a8e2b153035ee73613b7b39a9e
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17694-17754/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createFlow
function
/** * Creates a `_.flow` or `_.flowRight` function. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the new flow function. */ function createFlow(fromRight) { return flatRest(function(funcs) { var length = fu...
12,283
5f2fba79d0e87334b5758c980a8cc00e
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=17978-17993/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
createRelationalOperation
function
/** * Creates a function that performs a relational operation on two values. * * @private * @param {Function} operator The function to perform the operation. * @returns {Function} Returns the new relational operation function. */ function createRelationalOperation(operator) { ret...
12,284
f615a1d212f78ce7c52613324a6c98e8
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=21217-21234/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
zipObjectDeep
function
/** * This method is like `_.zipObject` except that it supports property paths. * * @static * @memberOf _ * @since 4.1.0 * @category Array * @param {Array} [props=[]] The property identifiers. * @param {Array} [values=[]] The property values. * @returns {Object} Returns the ...
12,285
e58d303a034628f58ad29f0e17f7610b
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=21395-21424/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
wrapperChain
function
/** * Creates a `lodash` wrapper instance with explicit method chain sequences enabled. * * @name chain * @memberOf _ * @since 0.1.0 * @category Seq * @returns {Object} Returns the new `lodash` wrapper instance. * @example * * var users = [ * { 'user': 'barney', ...
12,286
7ee5a056a84772aa1d079d68900a8185
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=40840-40928/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
getData
function
/** * Gets data from API **/ function getData(metric, projects, accessMethods, config, apiConfig, converter) { var deferred = new $.Deferred(), reverseLookup = {}, projectPromises = []; projectPromises = projects.map(function(_project){ // mapping every p...
12,287
2727f43c5d09489cd51ed17411be0561
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=32967-32969/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
isDuration
function
function isDuration (obj) { return obj instanceof Duration; }
12,288
756a9e021cf3266c166435fd96c38ce7
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=33283-33299/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
momentsDifference
function
function momentsDifference(base, other) { var res; if (!(base.isValid() && other.isValid())) { return {milliseconds: 0, months: 0}; } other = cloneWithOffset(other, base); if (base.isBefore(other)) { res = positiveMomentsDifference(base, other); }...
12,289
d242a1171c3ba1774a513e129abf739f
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=15121-15137/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
assocIndexOf
function
/** * Gets the index at which the `key` is found in `array` of key-value pairs. * * @private * @param {Array} array The array to inspect. * @param {*} key The key to search for. * @returns {number} Returns the index of the matched value, else `-1`. */ function assocIndexOf(array, ...
12,290
e567283c5bd9110de2500562e3501fc4
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=498-507/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
newContext::getModule
function
function getModule(depMap) { var id = depMap.id, mod = getOwn(registry, id); if (!mod) { mod = registry[id] = new context.Module(depMap); } return mod; }
12,291
2c1634e0d39773174ef5ea3376221461
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=1242-1261/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
newContext::intakeDefines
function
function intakeDefines() { var args; //Any defined modules in the global queue, intake them now. takeGlobalQueue(); //Make sure any remaining defQueue items get properly processed. while (defQueue.length) { args = defQueue.shift(); ...
12,292
64326e19c99ccf4b100a97a8a0ec3976
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=3227-3253/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
siblingCheck
function
/** * Checks document order of two siblings * @param {Element} a * @param {Element} b * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b */ function siblingCheck( a, b ) { var cur = b && a, diff = cur && a.nodeType === 1 && b.nodeType === 1 && a.sourceIndex - b.sourceIndex...
12,293
4f639a1e790566a91d3185fe470b86b5
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=5426-5429/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
sibling
function
function sibling( cur, dir ) { while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} return cur; }
12,294
c9f200e6eec40d491195fb475a9487dd
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=7031-7118/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
buildFragment
function
function buildFragment( elems, context, scripts, selection, ignored ) { var elem, tmp, tag, wrap, contains, j, fragment = context.createDocumentFragment(), nodes = [], i = 0, l = elems.length; for ( ; i < l; i++ ) { elem = elems[ i ]; if ( elem || elem === 0 ) { // Add nodes directly if ( jQuery....
12,295
4cdcad7c643d8ad81ddc3788a5c320a9
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=8477-8494/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
addGetHookIf
function
function addGetHookIf( conditionFn, hookFn ) { // Define the hook, we'll check on the first run if it's really needed. return { get: function() { if ( conditionFn() ) { // Hook not needed (or it's not possible to use it due // to missing dependency), remove it. delete this.get; return; } ...
12,296
6a975aa1562f2552b67a178a4420043d
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=16490-16511/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
baseRange
function
/** * The base implementation of `_.range` and `_.rangeRight` which doesn't * coerce arguments. * * @private * @param {number} start The start of the range. * @param {number} end The end of the range. * @param {number} step The value to increment or decrement by. * @param {boolea...
12,297
f3e8027ecdd1b1e0f03c8d412be739b6
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=22370-22388/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
shuffle
function
/** * Creates an array of shuffled values, using a version of the * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle). * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to shuffle. * @re...
12,298
e65a45b67d9f15cfdf7bdce55b82522e
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=27525-27616/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
truncate
function
/** * Truncates `string` if it's longer than the given maximum string length. * The last characters of the truncated string are replaced with the omission * string which defaults to "...". * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=...
12,299
4c37074937408b1d48ba70ac09cf396e
swh:1:cnt:d6ca79475143427e11ee0e4876a7ccf867b13043;origin=https://gerrit.wikimedia.org/r/analytics/analytics.wikimedia.org.git;lines=34285-34288/
78dc516bf6d052b11eafaf957768a8b9791c566f
analytics.wikimedia.org
analytics
dashboards/reportcard/scripts.js
duration_add_subtract__subtract
function
// supports only 2.0-style subtract(1, 's') or subtract(duration) function duration_add_subtract__subtract (input, value) { return duration_add_subtract__addSubtract(this, input, value, -1); }