code
stringlengths
24
2.07M
docstring
stringlengths
25
85.3k
func_name
stringlengths
1
92
language
stringclasses
1 value
repo
stringlengths
5
64
path
stringlengths
4
172
url
stringlengths
44
218
license
stringclasses
7 values
function dayOfYearFromWeeks(year, week, weekday, dow, doy) { var localWeekday = (7 + weekday - dow) % 7, weekOffset = firstWeekOffset(year, dow, doy), dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, resYear, resDayOfYear; if (dayOfYear <= 0) { ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
dayOfYearFromWeeks
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function weekOfYear(mom, dow, doy) { var weekOffset = firstWeekOffset(mom.year(), dow, doy), week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, resWeek, resYear; if (week < 1) { resYear = mom.year() - 1; resWeek = week + weeksInYear(resYear, d...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
weekOfYear
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function weeksInYear(year, dow, doy) { var weekOffset = firstWeekOffset(year, dow, doy), weekOffsetNext = firstWeekOffset(year + 1, dow, doy); return (daysInYear(year) - weekOffset + weekOffsetNext) / 7; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
weeksInYear
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function localeWeek (mom) { return weekOfYear(mom, this._week.dow, this._week.doy).week; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
localeWeek
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function localeFirstDayOfWeek () { return this._week.dow; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
localeFirstDayOfWeek
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function localeFirstDayOfYear () { return this._week.doy; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
localeFirstDayOfYear
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function getSetWeek (input) { var week = this.localeData().week(this); return input == null ? week : this.add((input - week) * 7, 'd'); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
getSetWeek
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function getSetISOWeek (input) { var week = weekOfYear(this, 1, 4).week; return input == null ? week : this.add((input - week) * 7, 'd'); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
getSetISOWeek
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function parseWeekday(input, locale) { if (typeof input !== 'string') { return input; } if (!isNaN(input)) { return parseInt(input, 10); } input = locale.weekdaysParse(input); if (typeof input === 'number') { return input; } ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
parseWeekday
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function parseIsoWeekday(input, locale) { if (typeof input === 'string') { return locale.weekdaysParse(input) % 7 || 7; } return isNaN(input) ? null : input; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
parseIsoWeekday
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function localeWeekdays (m, format) { if (!m) { return isArray(this._weekdays) ? this._weekdays : this._weekdays['standalone']; } return isArray(this._weekdays) ? this._weekdays[m.day()] : this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 's...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
localeWeekdays
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function localeWeekdaysShort (m) { return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
localeWeekdaysShort
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function localeWeekdaysMin (m) { return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
localeWeekdaysMin
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function handleStrictParse$1(weekdayName, format, strict) { var i, ii, mom, llc = weekdayName.toLocaleLowerCase(); if (!this._weekdaysParse) { this._weekdaysParse = []; this._shortWeekdaysParse = []; this._minWeekdaysParse = []; for (i = 0; i < 7; ++i) { ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
handleStrictParse$1
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function localeWeekdaysParse (weekdayName, format, strict) { var i, mom, regex; if (this._weekdaysParseExact) { return handleStrictParse$1.call(this, weekdayName, format, strict); } if (!this._weekdaysParse) { this._weekdaysParse = []; this._minWeekd...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
localeWeekdaysParse
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function getSetDayOfWeek (input) { if (!this.isValid()) { return input != null ? this : NaN; } var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); if (input != null) { input = parseWeekday(input, this.localeData()); return this.add(input - ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
getSetDayOfWeek
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function getSetLocaleDayOfWeek (input) { if (!this.isValid()) { return input != null ? this : NaN; } var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; return input == null ? weekday : this.add(input - weekday, 'd'); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
getSetLocaleDayOfWeek
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function getSetISODayOfWeek (input) { if (!this.isValid()) { return input != null ? this : NaN; } // behaves the same as moment#day except // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) // as a setter, sunday should belong to the previous week. ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
getSetISODayOfWeek
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function weekdaysRegex (isStrict) { if (this._weekdaysParseExact) { if (!hasOwnProp(this, '_weekdaysRegex')) { computeWeekdaysParse.call(this); } if (isStrict) { return this._weekdaysStrictRegex; } else { return this...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
weekdaysRegex
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function weekdaysShortRegex (isStrict) { if (this._weekdaysParseExact) { if (!hasOwnProp(this, '_weekdaysRegex')) { computeWeekdaysParse.call(this); } if (isStrict) { return this._weekdaysShortStrictRegex; } else { r...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
weekdaysShortRegex
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function weekdaysMinRegex (isStrict) { if (this._weekdaysParseExact) { if (!hasOwnProp(this, '_weekdaysRegex')) { computeWeekdaysParse.call(this); } if (isStrict) { return this._weekdaysMinStrictRegex; } else { retur...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
weekdaysMinRegex
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function computeWeekdaysParse () { function cmpLenRev(a, b) { return b.length - a.length; } var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], i, mom, minp, shortp, longp; for (i = 0; i < 7; i++) { // make the regex if we don't h...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
computeWeekdaysParse
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function cmpLenRev(a, b) { return b.length - a.length; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
cmpLenRev
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function hFormat() { return this.hours() % 12 || 12; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
hFormat
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function kFormat() { return this.hours() || 24; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
kFormat
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function meridiem (token, lowercase) { addFormatToken(token, 0, 0, function () { return this.localeData().meridiem(this.hours(), this.minutes(), lowercase); }); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
meridiem
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function matchMeridiem (isStrict, locale) { return locale._meridiemParse; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
matchMeridiem
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function localeIsPM (input) { // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays // Using charAt should be more compatible. return ((input + '').toLowerCase().charAt(0) === 'p'); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
localeIsPM
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function localeMeridiem (hours, minutes, isLower) { if (hours > 11) { return isLower ? 'pm' : 'PM'; } else { return isLower ? 'am' : 'AM'; } }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
localeMeridiem
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function normalizeLocale(key) { return key ? key.toLowerCase().replace('_', '-') : key; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
normalizeLocale
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function chooseLocale(names) { var i = 0, j, next, locale, split; while (i < names.length) { split = normalizeLocale(names[i]).split('-'); j = split.length; next = normalizeLocale(names[i + 1]); next = next ? next.split('-') : null; while (j >...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
chooseLocale
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
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; ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
loadLocale
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function getSetGlobalLocale (key, values) { var data; if (key) { if (isUndefined(values)) { data = getLocale(key); } else { data = defineLocale(key, values); } if (data) { // moment.duration._loc...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
getSetGlobalLocale
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function defineLocale (name, config) { if (config !== null) { var locale, parentConfig = baseConfig; config.abbr = name; if (locales[name] != null) { deprecateSimple('defineLocaleOverride', 'use moment.updateLocale(localeName, config) t...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
defineLocale
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function updateLocale(name, config) { if (config != null) { var locale, tmpLocale, parentConfig = baseConfig; // MERGE tmpLocale = loadLocale(name); if (tmpLocale != null) { parentConfig = tmpLocale._config; } config = merge...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
updateLocale
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function getLocale (key) { var locale; if (key && key._locale && key._locale._abbr) { key = key._locale._abbr; } if (!key) { return globalLocale; } if (!isArray(key)) { //short-circuit everything else locale = loadLocale(...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
getLocale
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function listLocales() { return keys(locales); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
listLocales
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function checkOverflow (m) { var overflow; var a = m._a; if (a && getParsingFlags(m).overflow === -2) { overflow = a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
checkOverflow
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function defaults(a, b, c) { if (a != null) { return a; } if (b != null) { return b; } return c; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
defaults
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function currentDateArray(config) { // hooks is actually the exported moment object var nowValue = new Date(hooks.now()); if (config._useUTC) { return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()]; } return [nowValue.getFullYear(), nowValu...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
currentDateArray
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function configFromArray (config) { var i, date, input = [], currentDate, expectedWeekday, yearToUse; if (config._d) { return; } currentDate = currentDateArray(config); //compute day of the year from weeks and weekdays if (config._w && config._a[DATE] == nu...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
configFromArray
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function dayOfYearFromWeekInfo(config) { var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow; w = config._w; if (w.GG != null || w.W != null || w.E != null) { dow = 1; doy = 4; // TODO: We need to take the current isoWeekYear, but that depends on...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
dayOfYearFromWeekInfo
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function configFromISO(config) { var i, l, string = config._i, match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), allowTime, dateFormat, timeFormat, tzFormat; if (match) { getParsingFlags(config).iso = true; for (i = 0, l = ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
configFromISO
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) { var result = [ untruncateYear(yearStr), defaultLocaleMonthsShort.indexOf(monthStr), parseInt(dayStr, 10), parseInt(hourStr, 10), parseInt(minuteStr, 10) ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
extractFromRFC2822Strings
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function untruncateYear(yearStr) { var year = parseInt(yearStr, 10); if (year <= 49) { return 2000 + year; } else if (year <= 999) { return 1900 + year; } return year; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
untruncateYear
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function preprocessRFC2822(s) { // Remove comments and folding whitespace and replace multiple-spaces with a single space return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').replace(/^\s\s*/, '').replace(/\s\s*$/, ''); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
preprocessRFC2822
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function checkWeekday(weekdayStr, parsedInput, config) { if (weekdayStr) { // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check. var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), weekdayActual = new Date(parsedInput[0], par...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
checkWeekday
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function calculateOffset(obsOffset, militaryOffset, numOffset) { if (obsOffset) { return obsOffsets[obsOffset]; } else if (militaryOffset) { // the only allowed military tz is Z return 0; } else { var hm = parseInt(numOffset, 10); var m...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
calculateOffset
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function configFromRFC2822(config) { var match = rfc2822.exec(preprocessRFC2822(config._i)); if (match) { var parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]); if (!checkWeekday(match[1], parsedArray, config)) { r...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
configFromRFC2822
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function configFromString(config) { var matched = aspNetJsonRegex.exec(config._i); if (matched !== null) { config._d = new Date(+matched[1]); return; } configFromISO(config); if (config._isValid === false) { delete config._isValid; } ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
configFromString
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function configFromStringAndFormat(config) { // TODO: Move this to another part of the creation flow to prevent circular deps if (config._f === hooks.ISO_8601) { configFromISO(config); return; } if (config._f === hooks.RFC_2822) { configFromRFC2822(con...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
configFromStringAndFormat
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function meridiemFixWrap (locale, hour, meridiem) { var isPm; if (meridiem == null) { // nothing to do return hour; } if (locale.meridiemHour != null) { return locale.meridiemHour(hour, meridiem); } else if (locale.isPM != null) { ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
meridiemFixWrap
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function configFromStringAndArray(config) { var tempConfig, bestMoment, scoreToBeat, i, currentScore; if (config._f.length === 0) { getParsingFlags(config).invalidFormat = true; config._d = new Date(NaN); return; ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
configFromStringAndArray
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function configFromObject(config) { if (config._d) { return; } var i = normalizeObjectUnits(config._i); config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) { return obj && parseInt(obj, 10); }); ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
configFromObject
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function createFromConfig (config) { var res = new Moment(checkOverflow(prepareConfig(config))); if (res._nextDay) { // Adding is smart enough around DST res.add(1, 'd'); res._nextDay = undefined; } return res; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
createFromConfig
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function prepareConfig (config) { var input = config._i, format = config._f; config._locale = config._locale || getLocale(config._l); if (input === null || (format === undefined && input === '')) { return createInvalid({nullInput: true}); } if (typeof i...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
prepareConfig
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function configFromInput(config) { var input = config._i; if (isUndefined(input)) { config._d = new Date(hooks.now()); } else if (isDate(input)) { config._d = new Date(input.valueOf()); } else if (typeof input === 'string') { configFromString(config); ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
configFromInput
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function createLocalOrUTC (input, format, locale, strict, isUTC) { var c = {}; if (locale === true || locale === false) { strict = locale; locale = undefined; } if ((isObject(input) && isObjectEmpty(input)) || (isArray(input) && input.length === ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
createLocalOrUTC
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function createLocal (input, format, locale, strict) { return createLocalOrUTC(input, format, locale, strict, false); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
createLocal
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function pickBy(fn, moments) { var res, i; if (moments.length === 1 && isArray(moments[0])) { moments = moments[0]; } if (!moments.length) { return createLocal(); } res = moments[0]; for (i = 1; i < moments.length; ++i) { if (!m...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
pickBy
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function min () { var args = [].slice.call(arguments, 0); return pickBy('isBefore', args); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
min
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function max () { var args = [].slice.call(arguments, 0); return pickBy('isAfter', args); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
max
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
now = function () { return Date.now ? Date.now() : +(new Date()); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
now
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function isDurationValid(m) { for (var key in m) { if (!(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) { return false; } } var unitHasDecimal = false; for (var i = 0; i < ordering.length; ++i) { if (m[order...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
isDurationValid
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function isValid$1() { return this._isValid; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
isValid$1
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function createInvalid$1() { return createDuration(NaN); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
createInvalid$1
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function Duration (duration) { var normalizedInput = normalizeObjectUnits(duration), years = normalizedInput.year || 0, quarters = normalizedInput.quarter || 0, months = normalizedInput.month || 0, weeks = normalizedInput.week || 0, days = normalizedIn...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
Duration
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function isDuration (obj) { return obj instanceof Duration; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
isDuration
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function absRound (number) { if (number < 0) { return Math.round(-1 * number) * -1; } else { return Math.round(number); } }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
absRound
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function offset (token, separator) { addFormatToken(token, 0, 0, function () { var offset = this.utcOffset(); var sign = '+'; if (offset < 0) { offset = -offset; sign = '-'; } return sign + zeroFill(~~(offset / 60), 2) +...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
offset
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function offsetFromString(matcher, string) { var matches = (string || '').match(matcher); if (matches === null) { return null; } var chunk = matches[matches.length - 1] || []; var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0]; var minutes = +(pa...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
offsetFromString
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function cloneWithOffset(input, model) { var res, diff; if (model._isUTC) { res = model.clone(); diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf(); // Use low-level api, because this fn is low-level api. ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
cloneWithOffset
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function getDateOffset (m) { // On Firefox.24 Date#getTimezoneOffset returns a floating point. // https://github.com/moment/moment/pull/1871 return -Math.round(m._d.getTimezoneOffset() / 15) * 15; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
getDateOffset
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function getSetOffset (input, keepLocalTime, keepMinutes) { var offset = this._offset || 0, localAdjust; if (!this.isValid()) { return input != null ? this : NaN; } if (input != null) { if (typeof input === 'string') { input = offsetFro...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
getSetOffset
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function getSetZone (input, keepLocalTime) { if (input != null) { if (typeof input !== 'string') { input = -input; } this.utcOffset(input, keepLocalTime); return this; } else { return -this.utcOffset(); } }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
getSetZone
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function setOffsetToUTC (keepLocalTime) { return this.utcOffset(0, keepLocalTime); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
setOffsetToUTC
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function setOffsetToLocal (keepLocalTime) { if (this._isUTC) { this.utcOffset(0, keepLocalTime); this._isUTC = false; if (keepLocalTime) { this.subtract(getDateOffset(this), 'm'); } } return this; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
setOffsetToLocal
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function setOffsetToParsedOffset () { if (this._tzm != null) { this.utcOffset(this._tzm, false, true); } else if (typeof this._i === 'string') { var tZone = offsetFromString(matchOffset, this._i); if (tZone != null) { this.utcOffset(tZone); ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
setOffsetToParsedOffset
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function hasAlignedHourOffset (input) { if (!this.isValid()) { return false; } input = input ? createLocal(input).utcOffset() : 0; return (this.utcOffset() - input) % 60 === 0; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
hasAlignedHourOffset
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function isDaylightSavingTime () { return ( this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset() ); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
isDaylightSavingTime
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function isDaylightSavingTimeShifted () { if (!isUndefined(this._isDSTShifted)) { return this._isDSTShifted; } var c = {}; copyConfig(c, this); c = prepareConfig(c); if (c._a) { var other = c._isUTC ? createUTC(c._a) : createLocal(c._a); ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
isDaylightSavingTimeShifted
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function isLocal () { return this.isValid() ? !this._isUTC : false; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
isLocal
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function isUtcOffset () { return this.isValid() ? this._isUTC : false; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
isUtcOffset
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function isUtc () { return this.isValid() ? this._isUTC && this._offset === 0 : false; }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
isUtc
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function createDuration (input, key) { var duration = input, // matching against regexp is expensive, do it on demand match = null, sign, ret, diffRes; if (isDuration(input)) { duration = { ms : input._milliseconds,...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
createDuration
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function parseIso (inp, sign) { // We'd normally use ~~inp for this, but unfortunately it also // converts floats to ints. // inp may be undefined, so careful calling replace on it. var res = inp && parseFloat(inp.replace(',', '.')); // apply sign while we're at it return...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
parseIso
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function positiveMomentsDifference(base, other) { var res = {milliseconds: 0, months: 0}; res.months = other.month() - base.month() + (other.year() - base.year()) * 12; if (base.clone().add(res.months, 'M').isAfter(other)) { --res.months; } res.milliseco...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
positiveMomentsDifference
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
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); }...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
momentsDifference
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function createAdder(direction, name) { return function (val, period) { var dur, tmp; //invert the arguments, but complain about it if (period !== null && !isNaN(+period)) { deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please us...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
createAdder
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function addSubtract (mom, duration, isAdding, updateOffset) { var milliseconds = duration._milliseconds, days = absRound(duration._days), months = absRound(duration._months); if (!mom.isValid()) { // No op return; } updateOffset = update...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
addSubtract
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function getCalendarFormat(myMoment, now) { var diff = myMoment.diff(now, 'days', true); return diff < -6 ? 'sameElse' : diff < -1 ? 'lastWeek' : diff < 0 ? 'lastDay' : diff < 1 ? 'sameDay' : diff < 2 ? 'nextDay' : diff < 7 ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
getCalendarFormat
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function calendar$1 (time, formats) { // We want to compare the start of today, vs this. // Getting start-of-today depends on whether we're local/utc/offset or not. var now = time || createLocal(), sod = cloneWithOffset(now, this).startOf('day'), format = hooks.calendarFo...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
calendar$1
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function clone () { return new Moment(this); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
clone
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function isAfter (input, units) { var localInput = isMoment(input) ? input : createLocal(input); if (!(this.isValid() && localInput.isValid())) { return false; } units = normalizeUnits(!isUndefined(units) ? units : 'millisecond'); if (units === 'millisecond') { ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
isAfter
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function isBefore (input, units) { var localInput = isMoment(input) ? input : createLocal(input); if (!(this.isValid() && localInput.isValid())) { return false; } units = normalizeUnits(!isUndefined(units) ? units : 'millisecond'); if (units === 'millisecond') { ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
isBefore
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function isBetween (from, to, units, inclusivity) { inclusivity = inclusivity || '()'; return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) && (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units)); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
isBetween
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function isSame (input, units) { var localInput = isMoment(input) ? input : createLocal(input), inputMs; if (!(this.isValid() && localInput.isValid())) { return false; } units = normalizeUnits(units || 'millisecond'); if (units === 'millisecond') { ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
isSame
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function isSameOrAfter (input, units) { return this.isSame(input, units) || this.isAfter(input,units); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
isSameOrAfter
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function isSameOrBefore (input, units) { return this.isSame(input, units) || this.isBefore(input,units); }
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
isSameOrBefore
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT
function diff (input, units, asFloat) { var that, zoneDelta, output; if (!this.isValid()) { return NaN; } that = cloneWithOffset(input, this); if (!that.isValid()) { return NaN; } zoneDelta = (that.utcOffset() - ...
Ported from sass implementation in C https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
diff
javascript
syzoj/syzoj
static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/Chart.js/2.7.3/Chart.bundle.js
MIT